> ## Documentation Index
> Fetch the complete documentation index at: https://moengage-unity-sdk-initialization-split.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Understanding Facebook setup for Custom Audience integration

> Set up your Meta app and ad account to create Facebook custom audience campaigns in MoEngage. Learn the required permissions and configuration steps.

To create Facebook Audience campaigns in MoEngage, you need to connect your MoEngage account with your Meta app and Meta ad account. This setup allows you to sync user audiences from MoEngage directly to Facebook, enabling targeted advertising based on your user segments.

This article explains how to set up or use an existing Meta app and a Meta ad account. Before you begin, understand the necessary permissions for Meta apps.

<Info>
  **Required Meta App Permissions**

  The MoEngage integration with Facebook Custom Audiences requires your Meta app to have **STANDARD access** for the **Ads Management** and **Ads Read** permissions. Without these permissions, MoEngage cannot add or remove users from your Facebook Custom Audiences.

  Here's how permissions apply based on your Meta app type:

  * If you create a new **Business** app, it automatically has **STANDARD access** for **Ads Management** and **Ads Read** permissions. This app type also does not have a development or live mode, simplifying setup.
  * If you are using an older **Business** app that still has a Live mode, you must complete an [App Review](https://developers.facebook.com/docs/app-review/introduction) process to gain **Ads Management** and **Ads Read** permissions in Live mode. To avoid this, create a new **Business** app.
  * If you create an app of type **Gaming**, **Consumer**, or **None**, you must undergo the [App Review](https://developers.facebook.com/docs/app-review/introduction) process to get **Ads Management** and **Ads Read** permissions when your app moves to Live mode.

  For more details on Meta App types, refer to the [Meta documentation](https://developers.facebook.com/docs/development/create-an-app/app-dashboard/app-types/).
</Info>

## Set up your Meta app

<Tabs>
  <Tab title="Create a New App">
    ### Create a new Meta app

    1. Go to the [Meta Business Settings](https://business.facebook.com/settings) page.
    2. In the left menu, click **Accounts**, and then click **Apps**.
    3. On the right side, on the **Apps** pane, click the **Add** drop-down menu.
    4. Click **Create a New App ID**. <img alt="Meta_FBSetup_CreateAppID.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/WqoTjr4uhFcFehvW/images/moengage_6e69cd.png?fit=max&auto=format&n=WqoTjr4uhFcFehvW&q=85&s=ef5adc6d78a7d9a90ebac7da95baae46" width="1966" height="916" data-path="images/moengage_6e69cd.png" />
    5. On the next screen, select a use case for the app, and then click **Next**. <img alt="Meta_FBSetup_SelectAppPurpose.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/Hp4VPgqtcEH1RPOv/images/moengage_fceb56.png?fit=max&auto=format&n=Hp4VPgqtcEH1RPOv&q=85&s=c23ce52520678f4786967e3be8e71b9e" width="2060" height="1226" data-path="images/moengage_fceb56.png" />
    6. Select an app type that describes the purpose of the app, and then click **Next**. <img alt="Meta_FBSetup_SelectAppType.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/OBvM-lWDjHd-vJ-h/images/moengage_722b8e.png?fit=max&auto=format&n=OBvM-lWDjHd-vJ-h&q=85&s=30e785ce48251d972dbf3354a70537d7" width="2458" height="1624" data-path="images/moengage_722b8e.png" />
    7. On the **Create an App** screen, enter the following details:
       | Field                           | Description                                                                                                                                                                                                                       |
       | :------------------------------ | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
       | **Add an App Name**             | This is the app name that appears on your My Apps page and is associated with your app ID. You can change this name later in **Settings**.                                                                                        |
       | **App Contact Email**           | This is the email address Meta uses to contact you about your app. Provide an address that you check regularly, as Meta may send information about policies, app restrictions, or recovery if your app is deleted or compromised. |
       | **Business Account** (Optional) | Connecting a Business Account to your app is required only for certain products and permissions. You are prompted to connect a Business Account when you request access to those products and permissions.                        |
    8. After filling in the details, click **Create App**. <img alt="Meta_FBSetup_CreateApp.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/nKy6ENocJM-Neco8/images/moengage_bc5f89.png?fit=max&auto=format&n=nKy6ENocJM-Neco8&q=85&s=0088591f2af28f9482db95131c961736" width="2064" height="902" data-path="images/moengage_bc5f89.png" />
    9. The App dashboard opens. You can now add products to your app. <img alt="Meta_FBSetup_MarketingAPI.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/W7uRAsIMAbhvTpo6/images/moengage_05fad8.png?fit=max&auto=format&n=W7uRAsIMAbhvTpo6&q=85&s=0761e56d7135f5d880b2797f8850f362" width="2854" height="1406" data-path="images/moengage_05fad8.png" />
    10. Search for **Marketing API** (shown in the image above), and then click **Set up**. Your app is created in development mode and is ready for testing.
  </Tab>

  <Tab title="Use an Existing App">
    ### Use an existing Meta app

    1. Go to [developers.facebook.com/apps](https://developers.facebook.com/apps), and then in the **App** drop-down menu at the top left corner of the App dashboard, select the app you want to use.
    2. Add the **Marketing API** to this app, if you have not already added it. <img alt="Meta_FBSetup_AddToExistingApp.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/hVszXvFGVjEtUa-d/images/moengage_b21c94.png?fit=max&auto=format&n=hVszXvFGVjEtUa-d&q=85&s=614f6746693d4f7c2a89efcd9d7b519d" width="2854" height="1406" data-path="images/moengage_b21c94.png" />
    3. If you are using an existing app, ensure that your app has **STANDARD access** for the **Ads Management** and **Ads Read** permissions. To check this, go to **App Review** > **Permissions and Features**, and then search for **ads\_read** and **ads\_management**. You should have **Standard Access** for both of these. Adding or deleting users from Facebook Custom Audiences does not require **Advanced access**. <img alt="Meta_FBSetup_Access (1).png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/1dd6WS88301wLG4J/images/moengage_3469dd.png?fit=max&auto=format&n=1dd6WS88301wLG4J&q=85&s=6f09d03d67c90d6813414355cd5ceed7" width="2884" height="1634" data-path="images/moengage_3469dd.png" />
    4. Copy the app ID displayed at the top of the page.
    5. Go to the [Meta Business Settings](https://business.facebook.com/settings) page.
    6. In the left menu, click **Accounts**, and then click **Apps**. You can find the name of the app you want to configure in the Apps list on the left.
    7. If the app is not on the list, click the **Add** drop-down menu, and then select **Connect an App ID**. <img alt="Meta_FBSetup_ConnectanApp.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/XsvjH2PscmCt5gYl/images/moengage_0946d2.png?fit=max&auto=format&n=XsvjH2PscmCt5gYl&q=85&s=0563ce06bcf29bf32d76608a64e6f914" width="2804" height="842" data-path="images/moengage_0946d2.png" />
    8. In the dialog box, enter the app ID you copied in Step 4, and then click **Add App**. <img alt="Meta_FBSetup_EnterCopiedAppID.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/q6SvYhZa4K6FIef8/images/moengage_42d5ac.png?fit=max&auto=format&n=q6SvYhZa4K6FIef8&q=85&s=c6c8b325fb049dabff869b8df6202396" width="1202" height="488" data-path="images/moengage_42d5ac.png" />
    9. The app appears in the **Apps** menu once successfully added. <img alt="Meta_FBSetup_AppsMenu.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/Y04E6L6nVYTEHbLD/images/moengage_717fe7.png?fit=max&auto=format&n=Y04E6L6nVYTEHbLD&q=85&s=67572418667e7bfcffea516cb9a7e36c" width="2884" height="1634" data-path="images/moengage_717fe7.png" />
    10. Ensure you have admin access to the app you want to use. On the **People** tab, click your ID or name in the list of people with access to the app. Make sure the **Manage App** toggle is on. <img alt="Meta_FBSetup_ManageAppAccess.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/WqoTjr4uhFcFehvW/images/moengage_6d7d3e.png?fit=max&auto=format&n=WqoTjr4uhFcFehvW&q=85&s=a6114759be2b3fc98a58e4c8fa379730" width="1494" height="1424" data-path="images/moengage_6d7d3e.png" />
  </Tab>
</Tabs>

## Set Up Your Meta Ad Account

<Tabs>
  <Tab title="Create a New Ad Account">
    ### Create a new Meta ad account

    1. Go to the [Meta Business Settings](https://business.facebook.com/settings) page. In the left menu, click **Accounts**, and then click **Ad Accounts**.
    2. On the right side, in the **Ad Accounts** screen, click the **Add** drop-down menu, and then select **Create a New Ad Account**. <img alt="Meta_FBSetup_AddAdAccount.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/E4eb9r-R89FFRfS_/images/moengage_d18e32.png?fit=max&auto=format&n=E4eb9r-R89FFRfS_&q=85&s=65f60453b7120d5b34b4e7863014a073" width="2786" height="770" data-path="images/moengage_d18e32.png" />
    3. Enter a name for the account, the time zone, and the currency. Click **Next**. <img alt="Meta_FBSetup_CreateNewAdAccount.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/xumO7vMfbhlGPQKG/images/moengage_0ba37d.png?fit=max&auto=format&n=xumO7vMfbhlGPQKG&q=85&s=5290f618e784d34e5aeda09f05369b18" width="1196" height="934" data-path="images/moengage_0ba37d.png" />
    4. On the **Who Will This Ad Account Be Used For** screen, select **My Business**. Click **Create**. <img alt="Meta_FBSetup_AdAccountUsedFor.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/nKy6ENocJM-Neco8/images/moengage_bc9e69.png?fit=max&auto=format&n=nKy6ENocJM-Neco8&q=85&s=a8449af1a36af10913b6aced0d444ce0" width="796" height="906" data-path="images/moengage_bc9e69.png" />
    5. On the next screen, you can add people and set permissions. Select your account, and then enable the **Manage Account** toggle. Click **Assign**. <img alt="Meta_FBSetup_Permissions (1).png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/kquucdzgqSjXMgOm/images/moengage_a9bbc1.png?fit=max&auto=format&n=kquucdzgqSjXMgOm&q=85&s=f324f017c151bf97520ab8a85504e948" width="1388" height="1058" data-path="images/moengage_a9bbc1.png" />
    6. Add your payment information. Once you add all necessary details, your ad account appears in the **Ad Accounts** menu. <img alt="Meta_FBSetup_AdAccounts.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/AGphINogzEr7dJkJ/images/moengage_dfb49e.png?fit=max&auto=format&n=AGphINogzEr7dJkJ&q=85&s=c3d20ebe6c1a18a3d58d7644cf70f1ff" width="2820" height="1434" data-path="images/moengage_dfb49e.png" />
  </Tab>

  <Tab title="Use an Existing Ad Account">
    ### Use an Existing Meta Ad Account

    1. Go to the [Meta Business Settings](https://business.facebook.com/settings) page. In the left menu, click **Accounts**, and then click **Ad Accounts**.
    2. In the **Ad Accounts** list on the right side of the screen, click the ad account you want to use. The ad account details appear on the Ad Account dashboard.
    3. Click your user name on the **People** tab. To confirm that you have admin access to the ad account, ensure the **Manage Ad Accounts** toggle is on. <img alt="Meta_FBSetup_AdAccounts_ExistingAccount.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/q4471uD7Q8MmKctf/images/moengage_3da63b.png?fit=max&auto=format&n=q4471uD7Q8MmKctf&q=85&s=9e37fc951ba045692407212407cac400" width="2884" height="1446" data-path="images/moengage_3da63b.png" />
    4. If the ad account name is not in the menu, click the **All Tools** menu, and then select **Ad Account Settings**. <img alt="Meta_FBSetup_AdAccounts_ExistingAccountFromSettings.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/JCklsy9f8YKzVPpW/images/moengage_021735.png?fit=max&auto=format&n=JCklsy9f8YKzVPpW&q=85&s=d9d26cb5e047c5088cae0aa2d4247fd7" width="2884" height="1446" data-path="images/moengage_021735.png" />
    5. Copy the **Ad Account ID** from the **Ad Account Settings** page that opens. <img alt="Meta_FBSetup_AdAccounts_CopyAdAccuntID.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/t37-50XEsNpFASoe/images/moengage_7e2d39.png?fit=max&auto=format&n=t37-50XEsNpFASoe&q=85&s=eaadd75f2ef85e689d2433c718ed3506" width="2854" height="1446" data-path="images/moengage_7e2d39.png" />
    6. Go back to the [Meta Business Settings](https://business.facebook.com/settings) page. In the left menu, click **Accounts**, and then click **Ad Accounts**.
    7. Click the **Add** drop-down menu, and then select **Add an Ad Account**. Paste the copied **Ad Account ID**, and then click **Add Ad Account**. Once the account is added, the ad account name appears in the menu. Make sure you have admin access to the ad account you want to associate with your custom audience, as explained in Step 3.
  </Tab>
</Tabs>

## Next Steps

Once you have successfully set up your Meta app and ad account, you can proceed with [integrating MoEngage with Facebook Custom Audiences](/user-guide/campaigns-and-channels/facebook-audience/getting-started-with-facebook-audience/facebook-audience-settings-on-moengage-dashboard). This integration allows you to create and manage custom audiences directly from MoEngage.
