I am trying to pull some of my facebook statuses that contain a particular keyword and show them on a web page, what is the url query string I should use?
The best I can came up with is graph.facebook.com/me/statuses
But it returns all the statuses, but i want statuses that contain a particular keyword, such in a search, how should I do it? Or is it even possible?
You'll have to manually go through the statuses returned from /me/statuses to find the ones that you care about. Facebook doesn't really let you use their computing power to search stuff like that.
Related
I want to get the information of exact categories from Google Photos API, such as the each people in PEOPLE categories ,but I find any methods in Google Photos APIs, Can you help me to get the information of exact categories?
I assume you want to programmatically get a list of categories that you can filter.
To my knowledge and after having worked with the API for some weeks, this is currently not possible.
There is a static list of categories that you can currently use for filtering at : https://developers.google.com/photos/library/guides/apply-filters#content-categories
Of course it would be nice of Google to provide a way to get this list dynamically with an API call in case this list is updated/modified in the future.
The Google Photos API is still very new and in beta, so maybe this will be a future feature from Google.
I use Django-google-places extension to get a list of photos (place.photos).
But the list I get is very unpredictable - pictures of users, food, etc.
Does Google provide something to get place's main picture that represents cafe/restaurant better?
Or maybe there's a way to get the best picture from list?
Place Search returns summary information about place. Maybe you can try to get photos from Place Search endpoint. https://developers.google.com/places/web-service/search.
I am trying to collect all public posts from facebook using Graph api like twitter streaming.But i couldn't find out a way, i checked the graph api search function
https://graph.facebook.com/search?q=anyword
it needs a parameter or keyword for search, but i need all the public posts not specific to any keyword or any user or any page. Please help me to find out this.
It is not possible to perform such a vague search. Any type of search query require at least one parameter / criteria to be search. Even if had been possible, it would be like receivind millions of arrays in a single objects(which is practically impossible)
In your case it should be all the posts from a single user, a group or a page. You can receive real-time updates from the Graph API, but that too needs the object to be subscribed to other objects. Check the following link.
Real Time Updates
Was wondering if anyone knows how to get the historical data for any Facebook Page.
For example, number of fans for RedBull fan page on a given day in the past or for a given period that ends today so that I can show fan development of any page over a given period.
I tried it with the graph API and FQL (insights) but no luck.
https://graph.facebook.com/{USERNAME}/insights?fields=likes&period('week')&end_time_date('2011-06-26') --> empty result
Pulling the data via FQL also returns no results, plus it seems without a read_insights permission nothing is possible for page data
I'd need this to be available with only a generic user access token. This data is publicly available anyway. Result should be somewhat like this: http://www.socialbakers.com/facebook-pages/australia/
https://graph.facebook.com/{{pagename}}/insights/page_views?access_token={{access_token_key}}&since=1420070400&until=1421625600
Since & until parameter in the above code takes in unix time.
add necessary information in the {{ }} and this code should work.
Without insight permission I recommend that you write something to perform a nightly query on the page graph and record the stats you need. If the page is public most of the information shown on that site is available.
You could also scrape info from http://pagedata.appdata.com if the page has already been listed...
Is there a way to search specific type of feed of the user by using the Graph API with
https://graph.facebook.com/me/feed
The URL normally returns most recent feeds but it is too much data, I just want to search for a specific feed based on some keywords. I have tried
https://graph.facebook.com/me/feed?q=SEARCH_KEYWORD
but it does not work (returns empty)
You might want to have a look at https://developers.facebook.com/docs/reference/fql/
With FQL you can pass SQL-Like queries to the Facebook API.