I am looking for an alternative way to calculate facebook page followers. As per facebook api documentation, there is no such metrics available as of now.
Let me know if anyone has encountered any solutions to it
Thanks
Harsh
If you want the total number of people who like the page, there is the field fan_count, that you can get with this query :
GET https://graph.facebook.com/{PAGE_ID}?fields=fan_count
If you want the total number of people who follow the page, there is no field to do this, according to the doc : https://developers.facebook.com/docs/graph-api/reference/page/
Related
Is there a metric that I can pull from the Facebook Graph API that would tell me either/both Response Rate and/or Average Response Time from a page?
I'll attach a screenshot as to what I'm referring to:
I'm seeing this when I go to Settings -> Insights -> Messages, but would love to know how to pull this information from Facebook.
Anyone know the specific metrics or queries I could use to obtain this information?
EDIT: For anyone who offers the displayed_message_response_time, this doesn't work because it is set by the user AND returns a string (not numeric value).
Afaik there is only one way to get the reaction time:
Use /page-id/feed?fields=id,from to get all posts with the info who created them
Filter out the user posts with the "from" field
Get the time between the user post and a page answer (if there is one) post by post
Calculate the average response time based on the resulting times
I believe Fanpage Karma does it that way.
I was reading the fb api doc but I couldn't find a lot about the different type of queries you can build.
Im trying to count all the likes in the posts from certain facebook page of the day.
Does the API supports params like the date or Will I have to take a whole response like the one I get with this request and somehow sum the counts of the likes?
https://graph.facebook.com/PAGE_ID/feed?fields=comments.limit(1).summary(true),likes.limit(1).summary(true)&access_token=XXXXXXX
Thanks
most graph api queries support a since, until params
you can try this based on your example
https://graph.facebook.com/PAGE_ID/feed?fields=comments.limit(1).summary(true),likes.limit(1).summary(true)&access_token=XXXXXXX&since=2015-08-25&until=2015-08-26
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.
I am using Graph API for getting insights of the page. For that i am using link like
https://graph.facebook.com/v2.0/PageID/insights/page_fans/lifetime?access_token=MY_ACCESS_TOKEN&since=2014-07-01&until=2014-07-15
I am getting total no. of like until date.
I want to show the total no. of users liked page in specific date like 2014-07-01,2014-07-02,2014-07-03....
Thanks for help..
You can use the page_fan_adds metric:
GET /{page_id}/insights/page_fan_adds?since=2014-07-01&until=2014-07-15
Have a look at https://developers.facebook.com/docs/graph-api/reference/v2.0/insights#page_users
I'm tyring to get the number of shares per post on a business page. I have read about the link_stats table which seems to have share_count for links. But I'm unable to find the share count per post. I can get number of comments and likes per post in the streams table. but share count seems to be missing. Please let me know if there is any other way to get share count per post in a page. thanks.
shares is provided as a connection on the /ID/feed endpoint, which means that you will be able to see the share count for posts in your /feed for your Page. This should really also be in the connections of an individual post, I suggest filing a feature request in the Facebook Bug Tracker for that.