I am trying to create a feed on a site which displays all the tweets which are about me so say if some one says #oli hello how are you? I would like it to display separately from my twitter feed.
How do I achieve this?
5 seconds using google -> http://apiwiki.twitter.com/Libraries#PHP
Use the statuses/mentions method.
If needed, you could also use the search API, for example http://search.twitter.com/search.json?q=to%3Aoli
This would allow you to get results without authentication, but search's API has its own limitations. See http://apiwiki.twitter.com/Twitter-Search-API-Method%3A-search
Related
I am trying to make a simple webpage that will just display the most recent, let's say 5, posts from a certain facebook page. I have tried so many ways to use the Facebook API, but no matter what I do, it either returns nothing, or I get an access denied message. I am an admin of the page.
What is the best way to do this with PHP? If there is no other way to get facebook posts, what is the best way to use the API?
I would also like to get the post URL, not the contents of the post.
I found a way using zapier.com. Thanks!
First, you need to get either the user/page access token. Then, you will be able to get the last 5 posts using: https://graph.facebook.com/{YOUR_PAGE_ID}/posts?access_token={YOUR_ACCESS_TOKEN}&limit=5
I want to be able to parse the website wikihow.com, so after some reasearch I find this page. But despites my reading I don't know who to parse the website.
For example, when I make a search on the website, I have a list of links with images to choose which I want to read.
So I try to do the same with the api. I try to use the query option like this : http://www.wikihow.com/api.php?action=query&titles=fries. Nothing came. Is it really an API for the website. Do you have an example of how to use the api.
Yes, wikiHow's API is the same as MediaWiki's API..But it does not provide API like http://www.wikihow.com/api.php?action=query&titles=fries
Need to show instagram photos, comments count, like count etc in a customized design. Any suggested way of doing this? Widgets available do not help.
http://instagram.com/developer/
is the URL where you can get the details of the Instagram API and its authentication.
You will have to do everything from authentication till fetching a feed.
I need to get/output all tweets from a particular user that contain a certain hashtag. The Search API works, but only lets me get the most recent such tweets, and I need all of them. Can this be done using PHP or JavaScript?
The first thing that you are going to need to realize is will the server of twitter allow you to pull out everything?
Here is some information.
https://dev.twitter.com/docs/using-search
As far as I know Twitter returns tweets from around last 7 days . Other services like topsy.com and analytics.topsy.com may be helpful.
I am new to facebook api. I want to search for a particular word on facebook. I have gone through the documentation at https://developers.facebook.com/docs/reference/api/. But I dont know how to construct the query in PHP.
Could any one please provide a sample code. Also how do I specify the count and page (like twitter)?
I am currently using the API provided by facebook. I saw that there are alternative API's but I would like to restrict the API to the official one
Facebook provides the search functionality which is like searching using the search inside facebook.com.
To read about it go to here: http://developers.facebook.com/docs/reference/api/#searching
Edit
As it states in that document:
When searching for public posts or posts on the user's News Feed, you
can page over the results by using the since, until and limit
parameters. since and until both accept a unix timestamp.
Also, just a bit above the "searching" section there's the "Paging" section, using both you can come up with:
https://graph.facebook.com/search?q=coffee&type=place&offset=X&limit=4
Which in terms of using the php sdk, is probably like: "search?q=coffee&type=place&offset=X&limit=4"