This message was deleted.
# ask-ai
s
This message was deleted.
u
The long sync time you're experiencing with the Facebook Marketing connector could be due to a few factors. 1. API Rate Limiting: Facebook heavily throttles API tokens generated from Facebook Apps by default, which can make the sync process infeasible due to rate limiting. You can follow the instructions in the [Setup Guide](https://docs.airbyte.com/integrations/sources/facebook-pages#performance-considerations) to access better rate limits. 2. Sync Configuration: In the Facebook Marketing Source Settings, you can specify the number of records per page for paginated responses. If you're dealing with a large amount of data, you might want to increase this number. However, be aware that this could potentially lead to more rate limiting issues. 3. Data Volume: If you're syncing a large amount of data, the process will naturally take longer. You might want to consider syncing smaller date windows or fewer tables if possible. 4. Network Issues: Network latency or instability can also slow down the sync process. If the sync is still ongoing and hasn't failed, it's likely that it's just taking a long time due to the volume of data and the rate limiting. If it has failed, you might want to look into the specific error message to troubleshoot further. For more detailed help, consider posting your issue on the [Airbyte Github Discussions](https://github.com/airbytehq/airbyte/discussions) or [Airbyte Community Forum](https://discuss.airbyte.io/).
j
@kapa.ai the facebook link didn't really inform me how to improve the rate limits. can you list the steps to take in the facebook app?
u
A message from kapa.ai
u
Sure, here are the steps to generate an access token and request a rate limit increase for your Facebook Marketing source in Airbyte: 1. Navigate to [Meta for Developers](https://developers.facebook.com/apps/) and follow the steps provided in the [Facebook documentation](https://developers.facebook.com/docs/development/create-an-app/) to create a Facebook app. 2. While creating the app, when you are prompted for "What do you want your app to do?", select Other. You will also need to set the app type to Business when prompted. 3. From your App’s dashboard, [set up the Marketing API](https://developers.facebook.com/docs/marketing-apis/get-started). 4. Generate a Marketing API access token: From your App’s Dashboard, click Marketing API --> Tools. Select all the available token permissions (
ads_management
,
ads_read
,
read_insights
,
business_management
) and click Get token. Copy the generated token for later use. 5. Request a rate limit increase: Facebook [heavily throttles](https://developers.facebook.com/docs/marketing-api/overview/authorization#limits) API tokens generated from Facebook apps with the default Standard Access tier, making it infeasible to use the token for syncs with Airbyte. You'll need to request an upgrade to Advanced Access for your app on the following permissions: - Ads Management Standard Access - ads_read - Ads_management See the Facebook [documentation on Authorization](https://developers.facebook.com/docs/marketing-api/overview/authorization/#access-levels) to request Advanced Access to the relevant permissions. You can use the [Access Token Tool](https://developers.facebook.com/tools/accesstoken) at any time to view your existing access tokens, including their assigned permissions and lifecycles. Please note that the process of getting your app approved for Advanced Access might take some time and may require you to provide additional information or a demonstration of how you're using the data. You can find more details on how to get your Facebook App reviewed in this [forum post](https://discuss.airbyte.io/t/1443). Remember to update your Airbyte Facebook Marketing source with the new access token once you have it.