Can we get who all liked our page post in Facebook using their APIs? - facebook-graph-api

I tried to consume Facebook API which need to get the list of who liked my post in my page. Is there any endpoint available in v15.0 (latest) ?
For Example:
If I have a page named "Restaurant" and i have posted a story on that page's feed as "New restaurant on the way to launch" and peoples are liking that post. I want to retrieve who and all liked that post along with the total count. How is it possible ?
Also a question, if a private account is liking that post in that "Restaurant page", how will it be counted too and can we fetch those details too ?
I have tried with the URL, https://graph.facebook.com/101882636084088/feed to get the page feeds and https://graph.facebook.com/{page-id}_{post-id}/likes, but I'm not able to fetch likes.
I also tried, https://graph.facebook.com/{page-id}_{post-id}?fields=likes.summary(true), I'm not getting proper count or who and all liked as response. Have anyone came across this scenario ?

Related

How to get Facebook page posts count on Android using Facebook SDK

I am building an app, which lists all posts from a Page(that I manage and post to) and also gets corresponding posts view count. I looked into the documentation and it seems like the page needs a minimum of 30 Likes for insights API to work. Is this correct? Is there a way I can get the view count?
Here is the output from Graph Explorer. I have set the access token to Page Access token.
I am passing the Post_ID to HTTP GET. I can see directly from Facebook that the post has reached N number of people. But the returned data from the API call is empty. Any help?

Facebook graph api, tell "comment" from "like" in the "post" list

after getting the json result of https://graph.facebook.com/me?fields=posts.fields(id,message,story)&access_token=*, how do you tell which one of them is "comment" and which one is "like" you made on some post from the list?
Thank you very much!
I ran the following in facebook's graph api:
/?posts.fields(id,message,story)
which provides the same result as:
/
Note that I used a post id, not a page id. On a page id, you'll see the likes for the page while a post id will show the people who liked a post. The output clearly shows who commented and who liked. If you want to get a number for the count of people who have liked the post, check out Getting from Facebook API total number of likes per post.

Can we get People Talking About This for a post?

Is there a way to get the "People Talking About This" statistic for a specific post on a Facebook Page ? The Insights API doesn't say it's possible. ( post_storytellers doesn't exist )
'People Talking About This' aggregates various interactions into a single metric including:
liking a Page
posting to a Page’s Wall
liking, commenting on or sharing a Page post (or other content on a page, like photos, videos or albums)
answering a Question posted
RSVPing to an event
mentioning a Page in a post
phototagging a Page
liking or sharing a check-in deal
or checking in at a Place.
As far as i'm aware there's no way to retrieve this value using the graph api without scraping the page directly.
You can however retrieve the total_count for a url which is an aggregation of shares, likes, comments via FQL, for example: https://graph.facebook.com/fql?q=SELECT%20total_count%20FROM%20link_stat%20WHERE%20url='https://www.stackoverflow.com'
more info: https://developers.facebook.com/docs/reference/fql/link_stat

Facebook graph API to get get posts from Pages

I'm struggling in getting the posts from the public page in Facebook. For example
https://graph.facebook.com/cocacola
(Its a public page, those who liked it on facebook will get update.)
This returns me the page details only. How I can get the wall posts done by the user "cocacola".
Its quite simple. just do as
https://developers.facebook.com/docs/graph-api/reference/v2.2/page/f‌​eed
It will work.
I'm a bit late at the party but for completeness I would like to add:
Using the latest version 2.2 you can access the feed via the page id, eg:
https://graph.facebook.com/v2.2/PAGE_ID/feed?access_tkoen=YOUR_ACCESS_TOKEN
Individual posts can be retrieved too by their own id or via the feed.
https://graph.facebook.com/v2.2/POST_ID?access_token=YOUR_ACCESS_TOKEN
Maybe this was also possible with the older versions? Don't know, I'm just getting started.

Facebook graph API does not return all posts for user

I am trying to get all user posts through Facebook graph API. But never get all of it.
When I tried it through the path: "me/posts" (with param limit=5000), I get all of the posts that wrote by the user (like I wanted), but not before specific date. Mean, in this way I am not getting any of the posts before specific date (in my case it was not before 29/01/2011).
When I tried it through the path: "me/feed" (with param limit=5000), I get all kind of posts from my profile wall even posts that not the user wrote and posts from start of my Facebook (2007).
But, this result is missing some of my posts through time. When I roll in my old post on my profile page I can see many posts that I wrote but its not in the result.
When I tried it through the fql:
"SELECT post_id, actor_id, created_time, updated_time, action_links, permalink, message, action_links FROM stream WHERE source_id = me() LIMIT 5000"
I get the same result as when I tried with the path: "me/feed". And the same missing posts is missing.
Is anybody else had this problem too?
Update:
I am sorry that I wasn't clear enough. My interest is only on the posts that current user wrote, not on his friends posts. I know that sometimes I can get from Facebook only mixed posts - like when I ask for the path: "me/feed". But, my intention was to filter them on my server.
The posts that missing from the data (and I can see on my wall) is my post, not my friend's posts.
This could happen when your friends have set their privacy settings so that their posts aren't made available via the Facebook platform. That's probably why you are seeing the difference.