> ## Documentation Index
> Fetch the complete documentation index at: https://moengage.com/docs/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**, **Ads Read**, and **Business Management** permissions. Without these permissions, MoEngage cannot add or remove users from your Facebook Custom Audiences.
</Info>

## Set up your Meta app

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

    1. Log in to [developers.facebook.com](https://developers.facebook.com).
    2. On your dashboard, click **Create App**.
    3. On the **App details** step, enter a name for your app, and then click **Next**.
    4. On the **Use cases** step, select **Create and manage ads with Marketing API**, and then click **Next**. <img alt="Meta Create an app wizard with the Use cases step showing Create and manage ads with Marketing API selected" src="https://mintcdn.com/moengage/p9NlSOa9ZmGdqMwi/images/facebook-setup-create-app-usecase.png?fit=max&auto=format&n=p9NlSOa9ZmGdqMwi&q=85&s=d12fe996c98ce1688a8dbf801b72fad8" width="2500" height="1322" data-path="images/facebook-setup-create-app-usecase.png" />
    5. Select the Facebook Business account to associate with your app, and then click **Create app**.

    Your app is created. Next, configure the required permissions and generate an access token.

    ### Configure permissions and generate an access token

    6. Open your app, and then in the left menu, click **Use cases**.
    7. For **Create & manage ads with Marketing API**, click **Customize**. <img alt="Use cases page with the Customize button for Create and manage ads with Marketing API" src="https://mintcdn.com/moengage/p9NlSOa9ZmGdqMwi/images/facebook-setup-usecase-customize.png?fit=max&auto=format&n=p9NlSOa9ZmGdqMwi&q=85&s=94d55752642e6d3876db4a0196b9b913" width="2500" height="1331" data-path="images/facebook-setup-usecase-customize.png" />
    8. In the left menu, click **Tools**. Under **Select Token Permissions**, select all three of the following permissions:
       * `ads_read`
       * `ads_management`
       * `business_management`
    9. Click **Get Token** to generate your access token. Copy this token and keep it safe — you need it when you [connect Facebook Audience in MoEngage](/docs/user-guide/campaigns-and-channels/facebook-audience/getting-started-with-facebook-audience/facebook-audience-settings-on-moengage-dashboard). <img alt="Customize use case Tools tab with ads_read, ads_management, and business_management selected under Select Token Permissions and the Get Token button" src="https://mintcdn.com/moengage/p9NlSOa9ZmGdqMwi/images/facebook-setup-token-permissions.png?fit=max&auto=format&n=p9NlSOa9ZmGdqMwi&q=85&s=462f42402c4dc5e98d9653dececb9969" width="2806" height="978" data-path="images/facebook-setup-token-permissions.png" />
  </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/QRy8rcYszbTJNwGr/images/moengage_b21c94.png?fit=max&auto=format&n=QRy8rcYszbTJNwGr&q=85&s=f16f04c3c2734051760d9bb26213a07a" 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/60BzFdXTJDO5dnCb/images/moengage_3469dd.png?fit=max&auto=format&n=60BzFdXTJDO5dnCb&q=85&s=81d16c37bf06e095c223b0b0f18a509d" 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/-uVFLyK4XoHTd5WE/images/moengage_0946d2.png?fit=max&auto=format&n=-uVFLyK4XoHTd5WE&q=85&s=93c0c8d18b8b2147f872ca0c254ac3f8" 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/Vec55CKt-wYQ1h5L/images/moengage_42d5ac.png?fit=max&auto=format&n=Vec55CKt-wYQ1h5L&q=85&s=f3d61165778863e00b0bc2fac5325b3b" 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/7H2dU4CG2W0DQCPI/images/moengage_717fe7.png?fit=max&auto=format&n=7H2dU4CG2W0DQCPI&q=85&s=6fe018436a9ed74fc1e85f2443277dc0" 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/S2vOz7ciYYqlhjCf/images/moengage_6d7d3e.png?fit=max&auto=format&n=S2vOz7ciYYqlhjCf&q=85&s=0996868c6616beb2e20a0649474c1655" 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/0iWkm50wROjmHH3Z/images/moengage_d18e32.png?fit=max&auto=format&n=0iWkm50wROjmHH3Z&q=85&s=2639231fb7a9382fd92f1335a51173ca" 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/P9B7WlDoMUnquME5/images/moengage_0ba37d.png?fit=max&auto=format&n=P9B7WlDoMUnquME5&q=85&s=6e6b6547b782cc13e0c65553ce611763" 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/cFTwc93vQdTanvKi/images/moengage_bc9e69.png?fit=max&auto=format&n=cFTwc93vQdTanvKi&q=85&s=e4feb8c5009b646cc3a01119f6db5750" 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/t_8awpRKFC9RNHlT/images/moengage_a9bbc1.png?fit=max&auto=format&n=t_8awpRKFC9RNHlT&q=85&s=2895d7904461291676d848ea72fff144" 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/wIFGWsQFEjsz2j4v/images/moengage_dfb49e.png?fit=max&auto=format&n=wIFGWsQFEjsz2j4v&q=85&s=5342cc088df81a1fc5a8ce53fda6349c" 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/2kQqTYC5RUPSd8kI/images/moengage_3da63b.png?fit=max&auto=format&n=2kQqTYC5RUPSd8kI&q=85&s=789b88dcb6974f6d45ab82f421764f0b" 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/S5VM4C7aiU6sct6c/images/moengage_021735.png?fit=max&auto=format&n=S5VM4C7aiU6sct6c&q=85&s=eceabba8897cede776853d22a786336e" 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/4hNKOAjPrnhpJB2_/images/moengage_7e2d39.png?fit=max&auto=format&n=4hNKOAjPrnhpJB2_&q=85&s=5fc3283ba9772a1197abcd0e6d4333d9" 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](/docs/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.
