Facebook API: Getting error in Insights API call - facebook

I am trying get reach data for all campaign from insight API call. I used https://graph.facebook.com/v2.4/ACCOUNT_ID/insights?access_token=ACCESS_TOKEN&level=campaign&fields=reach&limit=50 .
But I am receiving error:
{
"error": {
"message": "(#-2) Server timeout. Please wait and retry.",
"type": "OAuthException",
"code": -2
}
}
I have all around 5000 campaigns.

Related

Issues with Instagram Graph API (Insights endpoint)

Trying to get Instagram insights data through the Facebook API, and keep getting the same error message. I have all the necessary permissions required, auth tokens, etc, and nothing seems to change the response. Any ideas? Here's what I get back:
{
"error": {
"message": "(#100) Tried accessing nonexisting field (insights) on node type (InstagramUser)",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "A7sn36A6aleX86dUNqQa3kx"
}
}
Appreciate your help!

Errors with Facebook API

I am trying to implement the jobs API by facebook on my webpage and while trying to get the recruiting managers on the Graphs API get an error as below :
Request : me/recruiting_managers
Response :
{
"error": {
"message": "(#3) Application does not have the capability to make this API call.",
"type": "OAuthException",
"code": 3,
"fbtrace_id": "Ae0HxroItowuqypeuULh2J0"
}
}
I submitted the associated form thrice and sent them emails but haven't got any replies. Can anyone help me with this error, please?
It seems you have not authenticated, and therefore do not have an active token, which would then be passed with this request in order to authorize it.

Which permission is required to search topic on graph api

I want to search for a topic using facebook graph api but whenever I do https://graph.facebook.com/v2.7/search?q=search+string&type=topic&access_token={app_access_token} I get the following the following error :
{
"error": {
"message": "(#3) Application does not have the capability to make this API call.",
"type": "OAuthException",
"code": 3,
"fbtrace_id": "AbVC0S7WD3+"
}
}
I have searched over internet for two days for the solutions and even asked on #facebook channel over IRC but got no results so far.

Facebook Graph API explorer gives error code 100 for certain event ID

I'm trying to pull the data for the following Facebook Event: 1438916099678479
(https://www.facebook.com/events/1438916099678479)
When I enter the Facebook ID in the Graph API explorer however I get the following error:
https://developers.facebook.com/tools/explorer?method=GET&path=1438916099678479
{
"error": {
"message": "Unsupported get request.",
"type": "GraphMethodException",
"code": 100
}
}
The event however is open and I can't see what the reason is I'm not able to pull the data, with other events it works fine.

Graph API Batch request not working for GET

Following batch request doesn't work:
https://graph.facebook.com/?batch%3d[{%22method%22%3a%22get%22%2c%22relative_url%22%3a%22me%22}%2c%22{%22method%22%3a%22get%22%2c%22relative_url%22%3a%22me%2ffriends%3flimit%3d50%22}]%26access_token%3d
It has a valid access token & I have encoded it using UTF-8 to see if that works, but I get
{
"error": {
"message": "Unsupported get request.",
"type": "GraphMethodException",
"code": 100
}
}
Can somebody please tell me if Graph API supports only GET for Batch requests? thanks in advance