Question
How can I reduce Facebook API rate limit errors?
Environment
Connector: Facebook Ads
Answer
To prevent hitting Facebook API rate limits, use the Grant User Access
setup form option instead of Use System User Token
. If the Grant User Access
option is enabled, Facebook calculates limits based on the Fivetran application as opposed to your advertising account.
If using multiple Facebook connectors with the same authentication configuration, reduce your sync frequency to reduce the number of calls to the API in a 24-hour period (e.g., 6 hours to 12 hours).
Cause
Facebook Rate Limit Info
Facebook API Rate limits are set limits on the number of calls that can be made to the Facebook API based on different factors. When the connector hits these limits it needs to wait a certain amount of time before it can query the API.
For detailed info on Facebook API rate limits, see the Facebook API documentation for Rate Limits.
Access Methods Info
When you useGrant User Access
option, you grant our Facebook OAuth application permissions to request data on their behalf. This approach uses the Fivetran App rate limits.
When you useSystem User Access Token
option, you provide the token which belongs to your Facebook OAuth application and all API calls go through it. This uses your app rate limits.
Rate limit values are calculated using the number of active ads. If this number is low, the rate limits are also low.