Actually subscribers field is deprecated for versions v2.0 and higher. So what can I use to get total page followers count instead that?
Related
Iam trying get the number of times each individual liked my particular post.
It seems that it is possible to get the overall like count of a page.
But I dont need the overall like count. I want in specific data of a user who liked my posts.
I tried these links
How can I get fan page likes count using graph api?
Getting the Facebook like/share count for a given URL
How to get Facebook likes count for a Facebook page?
I am just writing the answer which is mentioned in the comment. Because that's the answer.
No, that is not really possible. Each of your friends would have to
sign in to your app and grant it permission to read their likes, and
you would need to have valid individual user tokens available for all
of them each time you want to request this data, because “A User or
Page can only query their own likes. Other Users' or Pages' likes are
unavailable due to privacy concerns.”
developers.facebook.com/docs/graph-api/reference/v3.3/object/
I am using Facebook Graph API version 2.0. I want to get the Facebook followers or subscribers count for some users. The complete Facebook page URL like: https://www.facebook.com/XXXUsernamexxx is with me.
I got a solution from how to get followers list from facebook account by graph api? that we can get the followers/subscribers count by using the following URL.
https://graph.facebook.com/v2.0/{user-id}/subscribers
But I don't have user id with me. I can get the user id by sending first a request to Facebook API like: https://graph.facebook.com/v2.0/?ids={complete-facebook-page-url}
From the response I will get the user id. Then there will be another request to Graph API to get the subscribers count. Hence there will be two requests to get the followers or subscribers count. But I want to limit it to one request.
It is possible to get the followers or subscribers count by sending complete Facebook page URL or by username?
Any help is highly appreciated.
This isn't possible as user_subscriptions is no longer available in v2.0.
Also currently for some 2.0 applications, the global ID seems to be still possible to use.
We have to make some trade-offs while v1.0 and v2.0 are both in play but from April 30, 2015 we'll have a stricter separation between global and app-scoped IDs. - David Doyle
Can we know per daily basis through the Facebook API the number of likes, the number comments, the number of shares on our posts and the number of posts made by users to ourg page? Not a sum of all these but each one separately.
You can use FQL to query the insights data for your app or page. See documentation and list of available metrics.
page_fan_adds will give you the new fans per day, for a page (application_like_adds for apps). page_like_adds, page_comments_adds and page_wall_posts are deprecated, so you will have to look for some other metric to replace this info. page_stories maybe?
Alternatively you can use the Graph API.
https://graph.facebook.com/APP_ID/insights/application_like_adds/day?access_token={ACCESS_TOKEN}&since=yesterday
I am wondering that can we count number of photos,status updates and friends of facebook users using php sdk .
Facebook graph API does not provide any counter that can be read to count number of photos, status updates, friends. It needs to be done after fetching the response data.
I want to get facebook fanpage's number of fans for last 30 days. I can get current fans count calling Facebook Graph API http://graph.facebook.com/id where I get value of "likes" object from response JSON.
But, how can I get fans count for each day of last month? I need array of data.
Thank you!
You'll need to get an access token for your page, and request the manage_pages permission.
Once you have this you will be able to query http://graph.facebook.com/{page_id}/insights - all the statistical information you need can be retrieved from this endpoint.