tap-facebook icon indicating copy to clipboard operation
tap-facebook copied to clipboard

'limit' parameter of graphql endpoints needs to be configurable, or backed-off upon receiving 'Please reduce the amount of data you're asking for, then retry your request'

Open wilsonbradleyc opened this issue 5 years ago • 1 comments

When pulling insights data from the facebook marketing api, we have started getting the following error:

Message: Call was not successful
Method:  GET
Path:    https://graph.facebook.com/v3.3/<1234567890>/insights?access_token=<hidden_token>&limit=25&after=NzQZD
Params:  {}

Status:  500
Response:
{
  "error": {
    "code": 1,
    "message": "Please reduce the amount of data you're asking for, then retry your request"
  }
}

After getting the error, I used the path specified in the error with Postman, and was able to decrease the limit and retrieve all of the data by following the page.next value

wilsonbradleyc avatar Aug 16 '19 18:08 wilsonbradleyc

You can try with api async

tranchuyen282 avatar Dec 09 '20 07:12 tranchuyen282