I am writing a Compliance Integration using Python and the Facebook Graph API to search all user content in our Workplace community for given keywords. I have something that previously worked every time, however recently (over the last couple of days) one of the requests sent to Facebook will return a FacebookApiException with the error code 960 with a message "Request aborted. This could happen if a dependent request failed or the entire request timed out." after having already successfully received thousands of successful requests. This doesn't occur all the time, but more often than not it will fail.
{
"error": {
"message": "Request aborted. This could happen if a dependent request failed or the entire request timed out.",
"code": 960,
"type": "FacebookApiException",
"fbtrace_id": "B72L8jiCFZy"
}
}
For simplicity I haven't been using dependencies in my requests, so I can only think that it is timing out. My question is -- what is the timeout period for the Facebook Graph API? Is it timing out because I am taking too long to send a request, or is it timing out because the Facebook server is taking too long to respond to my request? Is there any way I can increase the timeout to stop the error message occurring?
TIA