facebook api weekly total reach - facebook

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

Related

How to calculate Total Follower on Facebook when called through REST api?

I am looking for an alternative way to calculate facebook page followers. As per facebook api documentation, there is no such metrics available as of now.
Let me know if anyone has encountered any solutions to it
Thanks
Harsh
If you want the total number of people who like the page, there is the field fan_count, that you can get with this query :
GET https://graph.facebook.com/{PAGE_ID}?fields=fan_count
If you want the total number of people who follow the page, there is no field to do this, according to the doc : https://developers.facebook.com/docs/graph-api/reference/page/

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.

Count facebook page posts likes

I was reading the fb api doc but I couldn't find a lot about the different type of queries you can build.
Im trying to count all the likes in the posts from certain facebook page of the day.
Does the API supports params like the date or Will I have to take a whole response like the one I get with this request and somehow sum the counts of the likes?
https://graph.facebook.com/PAGE_ID/feed?fields=comments.limit(1).summary(true),likes.limit(1).summary(true)&access_token=XXXXXXX
Thanks
most graph api queries support a since, until params
you can try this based on your example
https://graph.facebook.com/PAGE_ID/feed?fields=comments.limit(1).summary(true),likes.limit(1).summary(true)&access_token=XXXXXXX&since=2015-08-25&until=2015-08-26

Is There Any Way to Get Shared Link Count in Certain Period of Time Using Facebook Graph API?

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

Getting "People talking about this" metric (PTAT)

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.