I am using facebook insights for showing fan page analysis in my application. Since the last upgrade by facebook on 1st week of Oct 2011, i am facing issues with 'page_fans_gender_age' data values served by the Insights API. I am using graph API for this. We fetch the insights JSON on daily basis, but most of the times it do not provide values of 'page_fans_gender_age' parameter. The behavior is random, sometimes it served the required data and sometime it do not.
Anybody facing the same problem?
Yes, I'm facing a very similar problem.
Right now, I'm just simply trying to get some JSON returned from facebook, using JavaScript / AJAX and the GET method.
Are you using the Graph API? If so, how do you attach your extended permissions token to the call to facebook's read_insights?
Related
I am working on facebook api. I can get total impression and clicks etc. data from facebook campaigns stats report. But my requirement is to get each impression in individual line. For example if campaign stats report shows 100 impression than I want to know 100 impression individually where they shown. Can anybody help me how I achieve this functionality of facebook marketing api.
Thanks
Hej,
You can breakdown the data by platform, device and such (check Facebook API Documentation about Breakdowns ) but as far as I am aware the API always aggregates Views that come from the same source or occurred in the same timeframe.
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.
I am trying to use the Facebook Graph API to GET Instagram metrics such as post impressions. I was able to successfully pull my Instagram Follow Count by using this query
{instagram_user_id}?fields=follow_count
When I try to query my post impressions with
{instagram-media-id}/insights?fields=post_impressions
nothing shows up. Am I missing something or have I possibly not requested the correct permissions?
I am trying to follow the documentation at the below link. Is it even possible to pull the impressions through the Facebook Graph API?
https://developers.facebook.com/docs/graph-api/reference/instagram-media/insights/
Thanks!
I believe that it wasn't possible to pull insights using the older version of the API.
However now it is possible as instagram / facebook just released a new version of their Graph API that includes insights. The request would be:
v2.10/{instagram_media_id}/insights?metric=impressions
The new documentation can be found here
Have you tried to specify "period" parameter? By default it might not be a "lifetime" and if you did not generate any impression recently you will see nothing (empty array i assume). In case you missing some permissions, Facebook will make you aware in response.
I'm trying to get the messages in a convertation, sent to a Facebook page, from a certain date, via the OpenGraph API.
for that, Im using the parameters "since" and "until".
{conversation_id}/messages?fields=message,from,created_time,shares,tags,attachments&since=4/12/2017 04:00:09 PM&until=4/12/2017 04:18:36 PM
Example from Facebook Graph Explorer
this should return only the messages between these dates in the conversation,
and used to work both in my code and in the Facebook Graph Explorer.
but recently i noticed that i get all the messages since the beginning of the conversation.
my code uses graph version 2.6, but i tested it on Graph Explorer in other versions as well, all the results are the same.
was there any change in the API that prevents this ability?
For anyone who come across this question who might want to know:
this issue was raised to Facebook as a bug, and their team accept it as a valid bug:
https://developers.facebook.com/bugs/420363721670492/
hopefully it will be solved soon
I am trying to read a user's stream using the facebook graph api. the call is:
https://graph.facebook.com/me/home?access_token=xxxxx&since=yyyyy
I am getting a response but there are a few problems:
Why in the response are some of the posts missing? (whether i am using the parameter "since" or not) I.E. the result I get as a response is not identical to the stream I see as a facebbok user (many posts are missing)
It seems that even if I use the "since" parameter, many of the posts returned are out of the time scope. Any ideas why? I would like to do paging according to specific time periods but it seems facebook api is not working as expected.
thanks
This is because of individual user's privacy settings.