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

# TikTok

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

## TikTok Configuration

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

<Steps>
  <Step title="Step 1">
    Go to <a href="https://developers.tiktok.com/" target="_blank">TikTok Developer Portal</a> and sign in there, afterwards click on **Developer Portal**.

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

  <Step title="Step 2">
    Select **Manage Apps** and click on **Connect an App**.

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

  <Step title="Step 3">
    Provide App Name and click on **Confirm** button.

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

  <Step title="Step 4">
    On the next page, under the **Basic information** section, fill in the required fields as you prefer. Below is an example of how it was filled for our demo.
    <Note>TikTok requires you to verify your domain URL with DNS TXT record, some helpful guidance can be found <a href="https://www.youtube.com/watch?v=ggwnt_9NDoc" target="_blank">here</a></Note>

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

  <Step title="Step 5">
    Click on **Add products** button.

    <img src="https://mintcdn.com/magicads/yrCresVat1CLM6R8/images/extensions/social-media/tiktok-6.png?fit=max&auto=format&n=yrCresVat1CLM6R8&q=85&s=133870645a9e3657e67ee65423926470" width="995" height="245" data-path="images/extensions/social-media/tiktok-6.png" />

    And add following products as shown below.

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

  <Step title="Step 6">
    After adding your products, you will see a new **Login Kit** section appear, enter your TikTok callback URL, which is **https\://YOUR\_DOMAIN\_NAME/app/oauth/callback/facebook**

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

  <Step title="Step 7">
    Under **Content Posting API** section, make sure you have enabled the checkbox for **Direct Post** and have **verified** your domain.

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

  <Step title="Step 8">
    On the **Add Scopes** section, make sure to add all scopes.

    <img src="https://mintcdn.com/magicads/yrCresVat1CLM6R8/images/extensions/social-media/tiktok-9.png?fit=max&auto=format&n=yrCresVat1CLM6R8&q=85&s=819ba7f0c79d67afba1795c4af1a7b17" width="1015" height="612" data-path="images/extensions/social-media/tiktok-9.png" />
  </Step>

  <Step title="Step 9">
    Now go to **Credentials** section and copy your **Client Key** and **Cleint Secretn** credentials.

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

  <Step title="Step 10">
    <Warning>After you are done with filling all fields, make sure to click on **Submit for review** button. Tiktok and need to proper business identification</Warning>
  </Step>

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

    <img src="https://mintcdn.com/magicads/yrCresVat1CLM6R8/images/extensions/social-media/tiktok-11.png?fit=max&auto=format&n=yrCresVat1CLM6R8&q=85&s=490cfe868f3eb774cb4af270bfa5d08c" width="697" height="426" data-path="images/extensions/social-media/tiktok-11.png" />
  </Step>

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

  <Step title="Step 13">
    You know have completed the TikTok configuration.
  </Step>
</Steps>
