I’m working on a project which provide businesses to manage their facebook page, thus it will have tons of api call to Facebook. Is that possible to increase the rate limit by special request?
Question posted in Facebook API
The official documentation for the Facebook APIs can be found here.
The official documentation for the Facebook APIs can be found here.
3
Answers
No, there is no way to increase the limits by special request. If you really hit the limits, you are most likely doing something you are not supposed to. It is no problem to let businesses manage their FB Page with their own Page Token.
Actually this is now possible…
Facebook App Developer Dashboard
API Limit increase request
2022 Update :
Looks like there’s no way to increase limits for your app :
Based on Facebook best practices and on
Goutham answer
1 – When the limit has been reached, stop making API calls. Continuing to make calls will continue to increase your call count, which will increase the time before calls will be successful again.
2 – Check the X-Business-Use-Case-Usage HTTP header to see how close your ad account is to its limit and when you can resume making calls.
3 – Verify the error code and API endpoint to confirm the throttling type.
4 – Switch to other ad accounts and come back to this account later.
5 – It is better to create a new ad than to change existing ones.
6 – Spread out queries evenly between two time intervals to avoid sending traffic in spikes.
7 – Use filters to limit the data response size and avoid calls that request overlapping data.
Personally, I have developed this little snippet to never reach the limit but I can make your execution extremely long. (it’s C#)
Delay a few minutes :
Note that I swallow the exception because I don’t want to break my execution, in my case it’s better to reach the limit than break the execution. Also be careful with
Thread.Sleep
you have to consider your context (multi-thread ? async ? … ).