When you set up Facebook Audience campaigns using Marketing APIs, you might run into specific errors. Below are some common errors and how to resolve them.
| Error Message in MoEngage UI | What it Means | How to Fix It | 
| Requires business_management permission | Your app needs the business_management permission to read and write with the Facebook Business Manager API. This permission is needed to manage business assets, such as an ad account. You may also use this permission to request analytics insights to improve your app and for marketing or advertising purposes through the use of aggregated and de-identified or anonymized information (provided such data cannot be re-identified). | If you see this error, your app must go through the Facebook App Review process. Complete the review to get the required permission. | 
| Failed to create the new Facebook audience. Please try again. | This error appears when you cannot create a new custom audience during Step 2 of Facebook Audience Campaign creation. | One common reason for this is that the Facebook Custom Audience terms have not been accepted for your ad account. Refer to the section below to Identify and resolve permission issues. | 
Check for Required Permissions
Facebook's API does not let you create or change Custom Audiences if the terms have not been accepted. If the contract is not signed, Facebook triggers an error when you try to create or edit a Custom Audience.
Identify Permission Issues
To confirm that permission issues are causing the audience creation failure, follow these steps:
- Go to Developer Tools in your browser.
- Select the Network tab.
- In MoEngage, click Create Audience in the Create new audience section.
- Look for the error message that appears in the Network tab, as shown below.
Resolve Permission Issues
To resolve this issue, follow these steps:
- Navigate to the Manage Custom Audiences page on Facebook. You might be asked to log in if you are not already logged in.
- Update the correct Ad account ID in the URL.
- Accept the terms and conditions for the Ad account.
- Fetch a new access token from the Facebook App dashboard.
- Go to the MoEngage dashboard. Log out from Facebook on the MoEngage Settings page, and then log in again with the new access token.
- Try creating a new audience or adding new users to an existing audience.
If the problem continues, try these additional steps:
- Go to the Facebook App dashboard, and then click Add Product.
- Search for Facebook Login, and then select it.
- Fill in the relevant details. This should add Facebook Login to the left panel under Products.
- Return to the MoEngage dashboard, and then try creating a new audience or adding new users to an existing audience.