Hey there,
I want to fetch / display the MAU of a specific Facebook App. Is this possible or can this be done with a plugin?
You can do this with either the FQL or Graph API. To do it with the graph you will want to make the following call:
https://graph.facebook.com/your_app_id/insights
This will return you a json object. You will want to look for the insight called "application_active_users" for the period month.
You can find more about insights here and here.
Related
I want to get a page's posts by facebook graphic api(2.8, without FQL),
I have page_id, so I write something like this on graphic api testing page:
{post-id}/feed?limit=100
I know facebook only allow we get 100 posts,
is there any other way to get maybe number 101~200 posts?
or setting a keywords parameters like
{post-id}/feed?limit=100&keywords=apple
or setting a date duration parameter like
{post-id}/feed?limit=100&date=20160101_20161231
I only use graphic api testing page, so if it don't have to write any other codes, it will be very nice.
Thanks
You can limit your result with until and since like this
me?fields=feed.since(2016-12-20).until(2016-12-25).limit(4)
Is there a way to get the likes of last month using Graph API, of course, I am not admin, because being admin it is possible to get it. But using tools like fanpagekarma.com and quintly.com is possible! I don't know if it is possible. Thanks for all! :D
Example of Fanpage Karma
Example of Quintly
How can I query facebook's graph API to retrieve all user's likes (not only pages but also photos and others)?
For instance, how could I get all the pictures a user has liked? Using facebook's search bar you can find them easily by clicking on "photos has liked".
I wrote a script that scrapes the page content and does that but it's not very efficient.
I have recently come accross a similar problem, maybe this helps you solve it.
https://graph.facebook.com/v2.5/{page_id}/feed?fields=likes.limit(1).summary(true)&since={start_date}&until={end_date}&access_token={access_token}
This will give you a list of all posts that received likes during the specified time period. If you manage to write a code summing up the following JSON path you got your sum for "all user's likes":
data[0].likes.summary.total_count
Not entirely sure is this is exactly what you were searching for, hope it helps you though - and if not you, someone else.
As for likes you can also use the same way to extract Shares and Comments:
Shares
https://graph.facebook.com/v2.5/{page_id}/feed?fields=shares&since={start_date}&until={end_date}&access_token=
Comments
https://graph.facebook.com/v2.5/{page_id}/feed?fields=comments.limit(1).summary(true)&since={start_date}&until={end_date}&access_token=
Best regards
There isn't to my knowledge any way to get this from the API without grabbing every type of response from the API and then sorting through for likes. Facebook search bar uses an internal API different from the Graph API.
Currently I can see all upcoming events:
https://graph.facebook.com/page-id/events?access_token=...
Setting the 'since' parameter to 0 does not show past events.
If anyone has successfully fetched past events through the Graph API please share.
There is an unfixed bug in the facebook graph API preventing the user from retrieving past events from pages that are not his.
In fact the only solution is to use some FQL like this:
SELECT eid, name, description, start_time FROM event WHERE creator = [pageid]
The since parameter takes a date as the value in a specific format. For example 2012-08-17T16:20:00-0500. See https://developers.facebook.com/docs/reference/api/dates/ for details on formats.
One thing of note is there seems to be a limit on how far back the API will go in returning the events but I am not sure what this is yet.
I want to add a like/recommendation button to my site. Then, I want to be able to use the Graph API to query the recommendations for my domain (e.g. 17 people liked mysite.com/thisawesomepage)
There is a plugin that does this: http://developers.facebook.com/docs/reference/plugins/recommendations,
but I want to be able to retrieve the raw data.
Is this possible?
you just need the 'like_id' of your site. you can get it by liking it and looking at your list of likes through the graph api or however else.
then you just put it in a url like this:
https://graph.facebook.com/125086767519561
125086767519561 is the id of the The Glamourist, and you can see that it has been liked 198 times at the time of this writing.