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.
Related
I'm trying to analize a large number of posts from varoius pages for my bachelor thesis. Therefore I'm using a tool called Facepager which uses the graph API to fetch data from Facebook.
I need the following data:
id, link, type, from and the count of likes, shares and comments (just the numbers, no further info!). In general, everything is working just fine, only posts classified type=status behave strangely. For some of these posts, there is no data shown about like, share and comment counts, further more there is no link given. But as mentioned before, this only happens sometimes! I searched for the affected posts manually on facebook and some of them had a large number of likes, shares or comments.
I also tried to fetch data with graph API explorer with similar results.
Is there any reason why it isn't possible to get share, like and comment count on some of the posts classified type=status?
Additionally, I'm planning to use the ID or if invalid, the link to open specific posts in my browser. This is not possible for some of the status posts either.
Sorry for that newbie question, it would be amazing if I could get an answer because at the moment I am quite desperate because this is really important for my bachelor thesis. Thanks a lot!
Because this kind of post is a post which "CAN NOT BE VIEWED".
ex: "xxxx likes a link", or "XXX commented on a post".
I suggest that you should filter out these posts by yourself.
Clicking a post in Facebook's post insights shows a summary like this:
I am however bamboozled as to how a post can have 8 likes, 3 comments and 2 shares on shares of this post, without that post having been shared ('0 on post').
Trying to gain further insight into this:
/{post-id}/insights doesn't return any share information.
/{post-id}/sharedposts returns an empty set, even for posts that have been directly shared.
/{page-id}/posts just indicates the "shares on posts" (not on shares) and even omits that if it's zero like in this case.
Where can I find the "On Shares" figures in the api?
Maybe "on shares" is from people who liked the post because their friend liked it. and the original person hasn't liked the page. because the same issue happened with my account 2 Point Perspective and it didn't receive any "shares"!!
As far as I can conclude, "on shares" numbers can be calculated by total minus "on post" numbers. You can get total numbers from
/{page_id}_{post_id}/insights/post_stories_by_action_type
and "on post" numbers from
/{page_id}_{post_id}/?fields=likes.limit(0).summary(true),comments.limit(0).summary(true),shares
You should be able to get these numbers from /{page_id}_{post_id}/sharedposts/..., but as of this bug report, you won't be able to do so actually.
Also watch out for permissions and Graph API version number.
Had to think this through for awhile, but I finally got it (I think).
What it's basically saying is the following.
First line: you received a total of 8 Likes. The 8 Likes didn't come from your direct post. It came from the shares of other users (however many shares that was).
Second line: same situation as above. Except this time, you had 1 comment on your direct post, while 3 comments came from shares.
Third line: you get the gist.
Here is the exact language that describes how this works from Facebook.
"The metrics you see on a Page post when viewed from your Page's Timeline or in News Feed include likes, comments and shares that happened on the original post. The metrics in your Page Insights include likes, comments and shares from the original post plus any activity that happened if your post was shared. For example, if someone shares your post, and then their friend shares that post, this will be counted as 2 shares in Page Insights."
Source: https://www.facebook.com/help/336143376466063/
While using an FQL query to get likes on posts of a particular page ,we use the following code
SELECT post_id, like_info.like_count
FROM stream WHERE source_id = *Page ID*
While in graph API we use
9085937115/feed?fields=likes
How do we to get to know the "reach" of a particular picture.
A picture has its own likes,comments,shares and "reach"
I've tried searching the docs but in vain.I have also tried bluntly replacing likes with reach,but with no result.
Can anyone please help me in finding the parameter for reach of particular post.Thanks
What you want is an insight, so if you want to know the reach of a particular post you have to do this:
/POST_ID/insights
This will return a lot of insights you just have to narrow, to the one you want, in this case you have 7 options that may suit to you:
Lifetime Post Total Reach
Lifetime Post Paid Reach
Lifetime Post organic reach
Lifetime Post viral reach
Lifetime Post viral reach by story type
Lifetime Post reach by people who like your Page
Lifetime Paid reach of a post by people who like your Page
The insights metric is available in 4 ways:
/{page-id}/insights
/{app-id}/insights
/{domain-id}/insights
/{post-id}/insights (where this is a Page post)
You can read more about insights metrics here: https://developers.facebook.com/docs/graph-api/reference/insights
I need a way to learn if a user had shared a post (link, video, photo etc.) which is published by a Facebook page. I have the object_id and link of the post, and user_id of the user considered. Is there a Graph API or FQL (or something else) solution to ask Facebook if the user re-shared the post or not? Or is it possible to get a list people who shared the post? So, I can extract my answer from this list.
Note that I know it is possible to find the answer by crawling the user's wall feed. But it is time consuming and I need a more efficient way.
Thanks in advance.
You can use the following FQL to get the data you're looking for.
SELECT via_id, created_time, owner_comment
FROM link
WHERE owner = me()
You can then compare via_id against the posts author (page ID) to determine if this share came from the page in question.
Unfortunately, there seems to be a bug with the data return where some of the via_ids come back as 0. There is a ticket in with Facebook which, at the time of this post, has been open for three weeks at medium priority. I have no idea if this issue is specific to my app or affects everyone, but that's the query to get what you want.
I am trying to build an app that fetch all the links posted on a Facebook page. I'll use the Kotaku page as an example (https://www.facebook.com/kotaku, Facebook ID is 273824104039).
I have tried to get the links via the graph API (https://graph.facebook.com/273824104039) or via FQL (here is the query I used: SELECT link_id, owner, title, url, owner_comment, summary, created_time FROM link WHERE owner = 273824104039), but both of them only return a subset of the links posted (20 as of writing this post).
(All request were made with an access token from my account that I granted the read_stream permission. I also 'like' the Kotaku page, but according to the documentation the links connection is available to everyone on Facebook.)
If you go on the page, it's pretty obvious that there are more than 20 links, but most of these were posted via the dlvr.it app and those are not showing in the queries above.
So does anyone know it there is a way to get those links as well? If possible, I would like to get all the links posted on that page not just the last 50 or from the last 30 days.
I think the issue is that links posted by apps aren't treated as native Facebook links, they're just posts with attachments, so you're not likely to find anything in links. With that said, try looking at the stream FQL table or the posts parameter of the graph.