I know it's possible to retrieve the 'likes' of a picture or status, e.g.: https://graph.facebook.com/id_of_your_status_or_photo?access_token=...
Then I have some info like the likes and comments, but no share info
You can get some basic info from an url like https://graph.facebook.com/?id=http://www.google.com
But I would like to know how you get the information of the people who've shared your photo or status.
To answer:
But I would like to know how you get the information of the people
who've shared your photo or status.
You are not allowed to know this, that would be an invasion of privacy. The closest you can do is to take an authenticated user's acess_token to your app and iterate thru their stream items until you find your link.
FYI, shares and likes are rolled up together into the like/share count.
Per the documentation:
The number shown is the sum of:
The number of likes of this URL
The number of shares of this URL (this includes copy/pasting a link back to Facebook)
The number of likes and comments on stories on Facebook about this URL
The number of inbox messages containing this URL as an attachment.
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 making ios and android apps and I want to get number of likes, shares, comments of any post that is posted by particular user from his/her Facebook, Instagram and Twitter accounts.
Means how can we get number of like, share, comment of the particular user's post of Facebook, Instagram and Twitter?
Does Facebook, Instagram and Twitter APIs/SDKs support this?
Please provide any reference link to achieve this.
I'm not sure about twitter or instagram API's but facebook graph API allows you to do this, given that you have the necessary permissions.
You can always check the public data, your own posts and such..if you want to have access to the data of a particular users feed/posts they will need to provide you with that permission. (user_posts in this case)
As for the total count you can retrieve it by adding .summary(1) to the end of your query ex. for likes, comments and shares.
me?fields=posts{comments.summary(1),likes.summary(1),shares}
you can also limit the number of comments/likes/shares to zero so that you retrieve only the total count per post. If that is what you want simply ad .limit(0) before the .summary(1) ex. comments.limit(0).summary(1)
Shares however are different from comments/likes/reactions, you can only retrieve the count of shares from graph API therefore you do not need to provide anything other than the "shares" query to the post to recieve that.
Cheers!
I have been searching via Google and found so many articles about this but now I need to ask some general questions.
I'm trying to get the likes and shares for a URl in Facebook. Please correct if I have misunderstood what a URl is in this context.
I have a URl with special content I want to promote via Facebook. I share it via a special Facebook page I built up for this articles.
Then I share this content of this page with my personal account in different groups. In every article I distribute in different groups the original URl with all its opengraph data is inside. This content is distributed by Facebook with a marker, that I (my name) shared content of a page (page name).
I have tried so many ways to get the shares and likes for this URl I posted via facebokk, but never got the correct values.
When I for example aks the "link_stat" table I get a number like 29 for likes. If I take a look a the content/URl I posted at the page 34 users liked it und the published URl in a group is liked by 59 users. Can you help me what this like from "link_stat" means?
I thought, if facebook users like and share the URl distributed via this way in one or more groups I get all likes and shares for this URl all over Facebook?
Am I wrong?
Thanks für your help!
Regards,
Jens
Is it possible to GET number of unique users who shared a post on a facebook fan page, remotely?
Basically I want to post a status update on my fan page. Next, for each time a fan shares the post, I want the count (of users who shared the post) to be updated on a separate web page. I know it's possible to get number of likes for a post, but how do I get the number of UNIQUE users who shared a post?
I believe you can do this with insights:
/PAGE_ID/insights?metric=page_storytellers_by_story_type
From what it looks like on my pages the user post value is the number of unique shares. The documentation isn't really clear on this though, so YMMV.
I would like to enquire whether or not it is possible to retrieves the numbers likes of a facebook fan page status or links or photos to be like?
if there is, must there be an apps for this or a simple social plugins?
the main thing i would to do is that, when USER A likes my website, the amount of likes will increased right? The link that USER A liked, would appear in USER A's wall. What would happen if their friends likes the post where USER A likes my website, can i add up to that likes too?
When you access the Post object in the Graph API it has the count and details for both the comments and the likes - e.g. http://graph.facebook.com/47764841579_10150344908236580