Go to https://developers.facebook.com/apps and create an app. At the end, you’ll get the App ID and an App Secret. You can then enter these in the Aivie Ad Sync plugin settings.
What do I need a Meta App ID and a secret for?
If you want to connect Aivie with Meta, authentication runs via your own app on Meta. This app ensures that:
- Aivie gets access to your ad account
- data is transferred securely
- you can control the connection at any time
The App ID and the secret are the credentials for this connection.
Step by step tutorial
1. Create a Meta app
Go to
https://developers.facebook.com/apps
- Log in with the account that manages your ad account
- Click Create App
- Select the Business type
- Give it a name, e.g., “Mautic Ad Sync”
- Add a contact email address
2. Find the App ID and secret
- In the dashboard, open Settings → Basic
- At the top you’ll find the App ID
- Next to App Secret, click “Show” to display it
3. Add Facebook Login
- Scroll to Add Product
- Select Facebook Login and click Set Up → Web
4. Configure the redirect URL
- Go to Facebook Login → Settings
- Paste the callback URL from Aivie (Authorization tab)
- Save the changes
- Note: The URL is only valid for testing after you save it.
5. Connect in Aivie
- Go back to Aivie
- Enter the App ID and App Secret
- Save the settings
- Click Connect
Then the Meta login dialog opens.
After you log in successfully, a long-lived token is saved automatically. A blank page confirms that everything worked.
6. Configure Ad Sync
Now go to Settings → Ad Sync and enter the remaining details from the Ads Manager.
Why am I getting the “Custom Audience Terms Not Accepted” error?
This error means that the Custom Audience terms have not yet been accepted in your Meta ad account.
By giving your consent, you confirm that you have lawfully collected the contact data and are permitted to use it for advertising on Meta, including the consent of the individuals concerned. At the same time, Meta ensures that the data is only used for matching, not shared with third parties, and deleted after the matching process.
Here’s how you can fix this:
- Open the terms page:
https://business.facebook.com/ads/manage/customaudiences/tos/ - Select your ad account
- Accept the Custom Audience terms
After that, the sync from Aivie should work normally.
Summary
Create a Meta app, copy the App ID and secret, and connect them in Aivie. After the OAuth login, the integration is active and ready to use.

