Get total comments, likes, and shares from Facebook - prints only zeros - facebook

I want to get for example total comments, but it only prints zeros (0) from the link below:
https://api.facebook.com/method/fql.query?query=SELECT+share_count%2C+like_count%2C+comment_count%2C+total_count+FROM+link_stat+WHERE+url%3D%22http://www.facebook.com/erikedgrensgalleri%22
If I change erikedgrensgalleri to cocacola it works perfectly! Why can't I get total comments and more from my Facebook page? I have 7 likes and several comments already there!
Thanks in advance.

They don't start doing metrics on Facebook pages until you have 30 number of fans and over. I'm pretty sure that's why, but not positive. I also can't see my facebook page counts. For more info & documentation (for what it's worth): http://developers.facebook.com/docs/insights/

Related

Where is "on shares" data found in Facebook's api?

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/

Facebook like button count on web page doesn´t correspond to Facebook insights number

I have an issue with the like button count on a webpage beeing much higher than the count reported in Facebook Insights for that same page on my domain.
For example when I look at an article that has been published for two days the button on site reports 18 likes. If i select the same timespan for that article in Facebook insights it reports 4 likes and 2 shares.
How can the numbers differ so much?
Thank´s for any advice!
I have the same problem, just Googled and found this post: http://faso.com/fineartviews/21028/facebook-like-button-count-inaccuracies. It explains very in details why and how.

How to get page fan count from last week

I want to get the number of new facebook fans for a given page from last week.
e.g.: monday to sunday of previous week.
I have searched for this but can't find any info.
I can get the total fan count easily from the social graph but not sure how to get new fan count from last week so that I can get a report like:
New fans last week: 152
Total fans: 2341
You have to be admin of that page, and you need the "read_insights" permission. Without user authorization you don´t have access to the Insights, and that´s the only way to get detailed statistics.
https://developers.facebook.com/docs/reference/fql/insights/
Using FQL, it is explained here:
How to get `page_fan_adds` for multiple days using FQL
A bit complicated, because you have to add the daily values. But on the same page, the much easier solution is presented:
bladauhu/insights/page_fan_adds/?since=1340175600&until=1342767600

Facebook API definitions explained

I have the list of definitions for fields in the Facebook API.
http://developers.facebook.com/docs/reference/fql/insights/
The definitions are a brief and not explained. Is there a more detailed description of these somewhere? Specifically:
What is the difference between 'page_posts_impressions' and 'page_impressions'?
I see that the 2nd is larger than the 1st. What other kind of page impression would a user get that is not in their feed?
Also, how are organic and viral defined?
I thought that organic might be generated by the page's postings and viral might be generated by those posting stories about the page.
So I thought that organic + viral = total
I can see on some days this is true but not on others.
Thanks
John
From the page you linked:
page_posts_impressions - The number of impressions that came from all of your posts
page_impressions - The total number of impressions seen of any content associated with your Page
The second includes places users were exposed to your page other than via posts the page itself made, including a user's friends writing on the page wall, sharing a link to the page, etc

Is there a limit on how many wall posts(from the past) can I get of a Facebook page using the Graph API?

I would think there would be a cut-off on the number of posts, or a cut-off in time period after which I won't be able to get the posts. From a few test runs, I am unable to form any idea as for some pages it returns all the posts till the beginning whereas for some it stops midway. Also neither is the number of posts hinting towards a constant limit, nor is the first post time hinting at any time cut-off.
The documentation(http://developers.facebook.com/d...) doesn't talk about any limit, so I am out of ideas. Can anyone throw some light on this and provide some credible information? Thanks already for your time.
The documentation https://developers.facebook.com/docs/reference/api/user/ was updated to show you get up to 25 posts.