I want to convert
https://graph.facebook.com/100001186987234?fields=friends.uid(5718473123).fields(photos.type(uploaded).limit(10).fields(source,id,picture,link))
to an fql query.
Any one please explain how to convert this
Related
I'm trying to fetch some data from page posts on Facebook with the Graph API. I'm using Python normally but I try the queries first with the Exploration tool offered by Facebook.
I used the page_id + post_id to get the number of reactions (I would also like to get the count for each different reaction) and likes. But it just returns nothing. I get the data for the shares though. I have the post open on another tab and it has likes and reactions.
Don't know what I'm doing wrong.
I am developing an app on windows phone 8, using the facebook graph api.
for that, i need, for a particular user, all the youtube video posts that he/she has liked ever, but I haven't succeeded till now, in doing this.
in what way i can achieve this?
You might find "FQL/Like" useful for this.
Use SELECT user_id,object_type,object_id FROM like WHERE user_id=me() AND object_type = 'list' instead. Try it in FQL query explorer, and you will see that 'list' are all video results.
Does anyone know how to filter a users feed by category using the graph api? For instance.... I would like to pull the users news feed that relates to only Music like
http://graph.facebook.com/me/home?from_category=Music
Any help would be much appreciated.... Thanks!
as much I know, there is no direct way to query graph api for getting filtered feed though if you know the filter_key for a particular filter type of a user stream,then you can query the graph api with identifier filter.
so I think
1) you will need to make FQL query to get filter key, with something like:
SELECT filter_key FROM stream_filter WHERE uid=<uid> you can get all the avalable filters from a user's stream. please refer the doc here
2) now when you have your desired filter_key then you can request graph api to get the filterd feed with GET me/home?filter=filter_key . checkout the corresponding documentation here
Simply use
me?fields=id,name,music.limit(100)
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.
I'm trying to get some insights on a list of Posts by a Page on Facebook.
To be specific, I want to get the information highlighted in this blog post via the API.
But I can't figure out how, anyone knows how?
As far as I know it's only possible using the "stream" table. So you've got to use FQL to query this data. Using this technique you'll only get the impressions directly. Feedback rate can be calculated by adding #comments and #likes and dividing the result by #impressions. Hope they'll add this to the insights graph api as well.
MartinHN
Refer to https://developers.facebook.com/docs/reference/api/#analytics
If you are trying to aggregate multiple pages or a page other than the requesting app then you may need grant read_insights permissions to your application.
Refer to http://developers.facebook.com/docs/reference/api/insights/