I'm trying to get reach using the graph api for the previous 7 days.
For this I used
me/insights?metric=page_impressions_unique&period=day&since=1462924800&until=1463529600
The problem is that the total reach returned by the above url is not equal with the reach displayed on the facebook website/ insights tab(please see the fig1 for more details).
Using the api I get Reach 2293, BUT facebook displays 494 people reached, for the same period of time.
I'm thinking that maybe i'm not using the same metric as facebook does, maybe they are displaying the reach per post and not per page, but this is only my theory.
Can you please help me out to determine the same value as facebook does?
Thanks,
Catalin
The issue is with you query. You're querying for the metrics on yourself. Replace 'me' with the page id.
<page_id>/insights?metric=page_impressions_unique&period=day&since=1462924800&until=1463529600
Related
I am building an application for clients to be able to create Facebook Page in their account using my own Admin Access Token.
I have Standard Access approved for my Facebook application already.
I tried to create a few test pages using FB Graph Explorer and I succeeded.
I ran into a problem when I tried to create a page using Code in Classic ASP, it says Have reached page creation api throttle limit
FR- https://www.screencast.com/t/hTd4RDozov
I tried to search into the Facebook documentation to find out that when I can get out of this error, but couldn't find any response.
Are there anyone person who has got this error before? Or can someone tell when I can get rid out of this error?
Many thanks
Currently experiencing the same behavior. Talking to Facebook support they say the default limit for page creation is 2 pages per month. This number might be negotiable depending on your usecase.
On Facebook Insights UI there is a section called "Reach".
Using page_impressions_unique of Insights API (which is supposed to carry the "Reach" value) I get a value which is 1/3 of the one appearing on UI. It seems they add some other metrics but it's not clear how to get that very same value using page metrics from Insights API.
https://developers.facebook.com/docs/graph-api/reference/v2.8/insights
Does anyone have any clue about it?
Reach in Facebook Ads Manager does not equal page_impressions_unique or even contain it. page_impressions_unique is a form of non-advertising, organic reach for your page; namely people who visited your page based on non-ads activity on Facebook.
Reach in Ads Manager is the number of unique ad impressions that Facebook delivered to people.
To see a full list of insights-related fields in our UIs as they map to the API, see "Metrics Names and API Fields" here https://developers.facebook.com/docs/marketing-api/insights
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 am trying to develop a software with my friend that can scrape Facebook IDs from certain profiles and then check them using the Facebook graph to classify them according to gender. I would like to know what is the limit for checking because I am getting a message that I have reached the limit. Would it be helpful to use proxies that can rotate and move to another when they reach the limit? Also what do you reckon the proxy timeout should be for good and fast results?
Facebook indeed has a rate limiting on the Graph API. In general, it comes does to about 600 calls per 600 seconds, per Access Token. You should try to make as many calls as possible with User Access tokens, and others with your App Access token.
I've noticed that using the new Facebook Graph API to fetch friends of users returns a number of friends that is close to, but not always exactly, the number of friends displayed on the user's profile.
Documentation here: http://developers.facebook.com/docs/api
For example, on that page, I click on https://graph.facebook.com/me/friends, and see the JSON for 477 friends, whereas my profile page on facebook shows a count of 478.
Does anyone know why there is an inconsistency?
If you have friends that have opted out of the Facebook Platform, they will not show up in the API response.
After being frustrated by inconsistent friend count, I asked a former Facebook engineer about it. It's a known bug related to their usage of memcached, and is considered too expensive, difficult, or otherwise not worthwhile to fix for now.
My two penneth: I've noticed that the number of friends which is displayed in my profile fluctuates (by 1)! I don't know what the reason for this inconsistency is but I suggest you keep checking that number in your profile regularly and see whether it's the case for you as well.
In terms of the Graph API the discrepancy between the friend count in my profile and in the data returned by the API is 2.