Getting "People talking about this" metric (PTAT) - facebook

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.

Related

What to query for numeric value on "message response time" using Facebook Graph API? [duplicate]

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.

Difference in Engaged Users (Facebook page) and Engaged Users (Insights API)

We have a tool connecting with the Facebook Insights API to grab various metrics (Likes, Comments, etc).
One such metric is the Lifetime Engaged Users.
However, we've looked at many FB pages (not going through the API) and the insights numbers seem to be different.
I have used the Graph Explorer to check if there is an error in our request, and this is not the case. For example, in one case, the call returns "13480".
Here is the screenshot from the Insights page:
FB Insights Page
I may not be checking at the correct numbers, but can someone help me out?
I would like to figure out how I can find this particular metric, other than using our tool or using the Graph Explorer.
Thank you!
Try this: go recheck your call to API, remove that S from "metricS=metricName".
I met this problem today, and find that there are two ways to get object insight data:
object-id/insights/metricNameA,metricNameB
object-id/insights/?metric=metricNameA,metricNameB
I happened to use the 2nd way, and wrongly typed metricS instead of metric, which led to return an array of data for all metrics, and my code data[0].values[0].value therefore got the first metric in that array which is "post_story_adds_unique", if you have same mistake as mine, that 13480 could be this 1st metric return by default from FB.

What is the API parameter for reach of a post in Facebook Graph API

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

Does facebook insights API return post_impressions_by_story_type for any story type other than comment?

Looking over my insights API data for posts, the post_impressions_by_story_type metric appears to return only values for impressions generated by the comment story type.
For similar metrics, such as post_storytellers_by_action_type the insights API returns values for comment, like, share, follow & answer.
Is this true of the metric itself? Is it possible my content just hasn't generated any impressions through actions/stories other than comments?
Docs simply describe the metric as
The number of times this post was seen via a story published by a
friend of the person viewing the post

facebook api weekly total reach

I am trying to get the weekly total reach for a facebook page through the API.
I am using the graph api with the method /insights/page_impressions_unique/day/
the title and description of this method according to the api are:
"title": "Daily Total Reach",
"description": "Daily The number of people who have seen any content associated with your Page. (Unique Users)"
But when i compare the results with the insight of the page (web version) the results do not match (when i add up the results from the api for the same dates).
am i looking at the wrong metric?
thanks
Could it be that the Facebook isn't counting only unique users? Have you tried removing "_unique" from the API call.
Documentation: https://developers.facebook.com/docs/reference/fql/insights/#page_impressions