> ## 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.

# X

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

## X Configuration

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

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

    <img src="https://mintcdn.com/magicads/yrCresVat1CLM6R8/images/extensions/social-media/xai-1.png?fit=max&auto=format&n=yrCresVat1CLM6R8&q=85&s=8a214b89b210a88f5139a7efff193b39" width="460" height="189" data-path="images/extensions/social-media/xai-1.png" />
  </Step>

  <Step title="Step 2">
    Create a new Project and a new APP within that project and name it as you prefer. X free tier allows you to create only 1 app, which is enough for Social Media Extension.
  </Step>

  <Step title="Step 3">
    Select your newly created APP, click on the **Settings** tab and under **User authentication settings** section click on the **Edit** button.

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

  <Step title="Step 4">
    Configure your APP as shown below, make sure that your callback URL ends with **/app/oauth/callback/twitter** and click on **Save** button.

    <img src="https://mintcdn.com/magicads/yrCresVat1CLM6R8/images/extensions/social-media/xai-3.png?fit=max&auto=format&n=yrCresVat1CLM6R8&q=85&s=4a207f6be1557e2fc39b4d18293c1d02" width="658" height="817" data-path="images/extensions/social-media/xai-3.png" />

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

  <Step title="Step 5">
    1. Next, while you have your APP selected, click on the **Keys and Tokens** tab, under the **OAuth 2.0 Client ID and Client Secret** section, copy your **Client ID** and **Client Secret**.

    <img src="https://mintcdn.com/magicads/yrCresVat1CLM6R8/images/extensions/social-media/xai-5.png?fit=max&auto=format&n=yrCresVat1CLM6R8&q=85&s=b327d0c797b7a6d660c5dd6b0209a418" width="964" height="862" data-path="images/extensions/social-media/xai-5.png" />

    2. Go to **AI Settings** page in Admin Panel, click on **Extensions** tab, and select **Social Media Suite** extension.
    3. Under **Twitter Settings** section, include your **Twitter Client ID** and **Twitter Client Secret** which you just copied earlier.

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

  <Step title="Step 6">
    1. Next, while you are at the **Keys and Tokens** tab, under the **Authentication Tokens** section, generate and copy your **Access Token** and **Secret Token**.

    <img src="https://mintcdn.com/magicads/yrCresVat1CLM6R8/images/extensions/social-media/xai-7.png?fit=max&auto=format&n=yrCresVat1CLM6R8&q=85&s=098113ddbde30302af52a7887d36ac45" width="945" height="840" data-path="images/extensions/social-media/xai-7.png" />

    2. Go to **AI Settings** page in Admin Panel, click on **Extensions** tab, and select **Social Media Suite** extension.
    3. Under **Twitter Settings** section, include your **Twitter Access Token** and **Twitter Access Token Secret** which you just copied earlier.

    <img src="https://mintcdn.com/magicads/yrCresVat1CLM6R8/images/extensions/social-media/xai-8.png?fit=max&auto=format&n=yrCresVat1CLM6R8&q=85&s=60fdf7f71a8962a39fa34a6d15c2b0ef" width="706" height="775" data-path="images/extensions/social-media/xai-8.png" />
  </Step>

  <Step title="Step 7">
    1. The last step, while you are at the **Keys and Tokens** tab, under the **Consumer Keys** section, generate and copy your **API Key** and **Secret Key**.

    <img src="https://mintcdn.com/magicads/yrCresVat1CLM6R8/images/extensions/social-media/xai-9.png?fit=max&auto=format&n=yrCresVat1CLM6R8&q=85&s=15a4508b672048d8fb0f4d4813f655f2" width="945" height="840" data-path="images/extensions/social-media/xai-9.png" />

    2. Go to **AI Settings** page in Admin Panel, click on **Extensions** tab, and select **Social Media Suite** extension.
    3. Under **Twitter Settings** section, include your **Twitter API Key** and **Twitter API Secret** which you just copied earlier.

    <img src="https://mintcdn.com/magicads/yrCresVat1CLM6R8/images/extensions/social-media/xai-10.png?fit=max&auto=format&n=yrCresVat1CLM6R8&q=85&s=652cdd53c8dc24e61bbecdcbbb4b3735" width="701" height="774" data-path="images/extensions/social-media/xai-10.png" />
  </Step>

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

  <Step title="Step 9">
    You know have completed the X configuration.
  </Step>
</Steps>
