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

# Facebook

> Setup your Facebook account so that your users will be able to post on their Facebook accounts via Social Media Suite Extension

## Facebook Configuration

Follow these steps to setup your Facebook Developer Account and include your API keys in Davinci AI.

<Steps>
  <Step title="Step 1">
    Go to <a href="https://developers.facebook.com/" target="_blank">Facebook Developer Portal</a> and sign in there, afterwards click on the **My Apps** link.

    <img src="https://mintcdn.com/magicads/yrCresVat1CLM6R8/images/extensions/social-media/facebook-1.png?fit=max&auto=format&n=yrCresVat1CLM6R8&q=85&s=5be4a3e9eae6566c8d071d9d5a88ba8e" width="1476" height="134" data-path="images/extensions/social-media/facebook-1.png" />
  </Step>

  <Step title="Step 2">
    Create a new App.

    <img src="https://mintcdn.com/magicads/yrCresVat1CLM6R8/images/extensions/social-media/facebook-2.png?fit=max&auto=format&n=yrCresVat1CLM6R8&q=85&s=f2887ff0b80fece3c81632c88a8fef06" width="1552" height="276" data-path="images/extensions/social-media/facebook-2.png" />
  </Step>

  <Step title="Step 3">
    In the **App Details** section, provide your App Name and Contact email address and click Next button.

    <img src="https://mintcdn.com/magicads/yrCresVat1CLM6R8/images/extensions/social-media/facebook-3.png?fit=max&auto=format&n=yrCresVat1CLM6R8&q=85&s=7cc24bac63ae684f3140525ced8c36bf" width="1049" height="447" data-path="images/extensions/social-media/facebook-3.png" />
  </Step>

  <Step title="Step 4">
    In the **Use Cases** section, select **Other** and click Next button.

    <img src="https://mintcdn.com/magicads/yrCresVat1CLM6R8/images/extensions/social-media/facebook-4.png?fit=max&auto=format&n=yrCresVat1CLM6R8&q=85&s=c075a139d4ddd229e1c5171d993f9f9e" width="1030" height="875" data-path="images/extensions/social-media/facebook-4.png" />
  </Step>

  <Step title="Step 5">
    In the **Business** section, select app type to be **Business** and click Next button. Fill in the required fields and click on Create App button.

    <img src="https://mintcdn.com/magicads/yrCresVat1CLM6R8/images/extensions/social-media/facebook-5.png?fit=max&auto=format&n=yrCresVat1CLM6R8&q=85&s=9a1ebe837484c91d071d9564e57a0355" width="1045" height="393" data-path="images/extensions/social-media/facebook-5.png" />
  </Step>

  <Step title="Step 6">
    On the **Add products to your app** page, select **Facebook Login for Business** and click Set up button

    <img src="https://mintcdn.com/magicads/yrCresVat1CLM6R8/images/extensions/social-media/facebook-6.png?fit=max&auto=format&n=yrCresVat1CLM6R8&q=85&s=81789b42471c01dc5b5514c049e2c4ac" width="1084" height="877" data-path="images/extensions/social-media/facebook-6.png" />
  </Step>

  <Step title="Step 7">
    1. On the **Facebook Login for Business** settings page, under **Client OAuth settings** section, provide your **Valid OAuth Redirect URIs**
    2. It should be your **https\://YOUR\_DOMAIN\_NAME/app/oauth/callback/facebook**
    3. One done, click on  **Save Changes** button

    <img src="https://mintcdn.com/magicads/yrCresVat1CLM6R8/images/extensions/social-media/facebook-7.png?fit=max&auto=format&n=yrCresVat1CLM6R8&q=85&s=6819c6389956d84924ac53c86ccca2e9" width="1743" height="1003" data-path="images/extensions/social-media/facebook-7.png" />
  </Step>

  <Step title="Step 8">
    1. Next, under **App settings** menu on the side menu panel, select **Basic**
    2. Fill in your **App domains** names
    3. Provide **Privacy Policy URL**
    4. Provide **Terms of Service URL**
    5. Copy your **App ID** and **App Secret**
    6. One done, click on **Save Changes** button

    <img src="https://mintcdn.com/magicads/yrCresVat1CLM6R8/images/extensions/social-media/facebook-8.png?fit=max&auto=format&n=yrCresVat1CLM6R8&q=85&s=4bf40e6fa1eda02e91fa0519ffa94285" width="1629" height="1048" data-path="images/extensions/social-media/facebook-8.png" />
  </Step>

  <Step title="Step 9">
    1. Go to **AI Settings** page in Admin Panel, click on **Extensions** tab, and select **Social Media Suite** extension.
    2. Under **Facebook Settings** section, include your **Facebook App ID** and **Facebook App Secret** with the App ID and App Secret values that you just copied earlier.

    <img src="https://mintcdn.com/magicads/yrCresVat1CLM6R8/images/extensions/social-media/facebook-9.png?fit=max&auto=format&n=yrCresVat1CLM6R8&q=85&s=55c0edc2bf9d15c44f002d0279f47ea7" width="696" height="422" data-path="images/extensions/social-media/facebook-9.png" />
  </Step>

  <Step title="Step 10">
    After you have included all API keys in the **Facebook Settings** section, click **Save** button.
  </Step>

  <Step title="Step 11">
    You know have completed the Facebook configuration.
  </Step>
</Steps>
