This Question is tricky, How can I get the "Pages to Watch" statistics using the api, at this moment i just reach the total likes using
https://graph.facebook.com/{PAGE_ID}?fields=id,name,fan_count&access_token={TOKEN_XXXXXX}
And I like to get something like this.
but when I try to use other insights query´s data section returns empty, I know that not all the information is public, however I would like to be able to obtain the statistics corresponding to the elements that appear in the section of "Pages to watch" as "Total Page Likes,From Last Week,Posts This Week,
Engagement This Week ". Again.. Thanks.
https://graph.facebook.com/{PAGE_ID}/insights/page_fan_adds?debug=all&method=get&pretty=0&suppress_http_code=1&since=1477612800&access_token={TOKEN_XXXXXX}
or for example
https://graph.facebook.com/{PAGE_ID}/insights/page_engaged_users/day?debug=all&method=get&pretty=0&suppress_http_code=1&since=1477612800&access_token={TOKEN_XXXXXX}
Related
Is there a metric that I can pull from the Facebook Graph API that would tell me either/both Response Rate and/or Average Response Time from a page?
I'll attach a screenshot as to what I'm referring to:
I'm seeing this when I go to Settings -> Insights -> Messages, but would love to know how to pull this information from Facebook.
Anyone know the specific metrics or queries I could use to obtain this information?
EDIT: For anyone who offers the displayed_message_response_time, this doesn't work because it is set by the user AND returns a string (not numeric value).
Afaik there is only one way to get the reaction time:
Use /page-id/feed?fields=id,from to get all posts with the info who created them
Filter out the user posts with the "from" field
Get the time between the user post and a page answer (if there is one) post by post
Calculate the average response time based on the resulting times
I believe Fanpage Karma does it that way.
I'm trying to get share count for link shared in Facebook during certain period of time. The links are all links to my website. I'm thinking of using the Facebook Graph API - insights, do daily checking and save the share count.
From graph explorer I get the insights/domain_stories result and it has this:
"values": [
{
"value": 0,
"end_time": "2015-03-21T07:00:00+0000"
},
Reading at the metric description I thought I would get detail like which page in my website that's been shared.
https://developers.facebook.com/docs/graph-api/reference/v2.3/insights#availmetrics
Is there any way to get that kind of information?
No, unfortunately the /?id={url} endpoint doesn't provide time period data.
See
https://developers.facebook.com/docs/graph-api/reference/v2.3/url
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/
Page Consumptions - The number of times people clicked on any of your content without generating a story (total count). Daily, weekly, monthly, by consumption type.
This is referring to the number of times that people have clicked on content posted on your page without generating a post in their own feed.
For example, I might click on a link on your page without sharing the link in my own feed (such that nothing related to your content appears in my feed). This counts as a consumption not generating a story.
I'm using the facebook api to pull some metrics, I want to get the "talking about this" metric, I reviewd the "Stories and People talking about this" from the facebook api and I'm pulling the "page_storytellers" metric, but I see that the number from this metric does not match with the "talking about this" metric from the facebook original page.
My question here is
How does the facebook api calculate this value for (page_storytellers metric)?
The "page_storytellers" metric is the correct one to get the "talking about this metric"?
Thanks for your help
http://developers.facebook.com/docs/reference/fql/insights/
In the Facebook Graph API Explorer there is a description for talking_about_count field:
The number of people that are talking about this page (last seven days). No access token or user access_token. number
So talking_about_count field is equal to page_storytellers insight metric with week period.
you just need to target the graph api node for the page
https://graph.facebook.com/nike/
last metric (talking_about_count) is talking about this. pull the number from the JSON object.
change "nike" with the page id you want to collect data from.