In the facebook insights dashboard they include:
"Page Previews", "Page Followers" and "Page Responsiveness" all given for a date range.
However, the API - https://developers.facebook.com/docs/graph-api/reference/v3.2/insights - does not include these metrics. Is there any way to get these metrics from the API? (for each day in a daterange)
Related
Good day,
I have a problem when I try to get the metric values of facebook ads api.
I'm learning about the Facebook API and that's why I don't understand some things. I've tried in several ways, but nothing works.
This is my URL from graph API explorer: Graph API Explorer 1
This is the error that throws me:
(#100) For field 'insights': period must be one of the following values: day, week, days_28, month, lifetime
This is the graph API explorer link where my url is: Graph API Explorer 2
Thanks.
Please refer to the Insights docs here Page Insights. Each metric has an additional period column that lists the available period for that specific metric.
In your case (page_fans_city) it's days and therefore your call needs to include the period parameter like this
/me/insights/page_fans_city?period=day
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
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
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
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.