Due to TikTok’s requirement to verify URL ownership for all redirect URLs, TikTok cannot be used with Dynamic shared credentials in sandbox or production environments. You will need create an app with custom credentials. To go to production, you will need use to contact us for custom domains.

Creating a new sandbox application

• When you are creating your app, make sure to specify “Configure for Web” for your app type (it will be treated as a web app in the context of OAuth)

• Your OAuth client_id is referred to as client_key

• As of September 2024, TikTok requires Terms of Service URL, Privacy Policy URL, your Desktop or web URL, Redirect URI and Webhooks Callback URL

• TikTok docs and pre-requisites can be found here

Here are the step-by-step instructions for obtaining OAuth credentials for TikTok:

  1. Go to the TikTok Developer Portal and sign in to your account.
  2. Once you’re signed in, click on “Connect an app”
  3. Fill out the “App name” and specify if this is for an Individual or an Organization, then click “Confirm”
  4. Make sure that “Sandbox” is selected. Sandbox applications do not require domain verification
  5. Fill out the “Category”, “Description”, “Terms of Service URL”, “Privacy Policy URL”
  6. Select “Web” under “Platforms”
  7. Under “Products”, select “Add Products” and click on “Login Kit”
  8. Under “App info” paste your “Redirect URL” (Redirect URL can be found in the Dynamic dashboard https://app.dynamic.xyz/dashboard/log-in-user-profile#social-tiktok)
  9. Enter your “Website URL”.
  10. In order to allow test users to login, click “Add account” under “Target Users” and link an existing TikTok account
  11. Click save under the form.
  12. Copy and paste the “Client Key” and “Client Secret” and paste it into “Set up TikTok Auth” Modal in the Dynamic Dashboard.

That’s it! You now have OAuth credentials for your TikTok application that you can use in Dynamic.

Creating a production app

Contact us to setup a custom domain due to TikTok’s callback URI verification requirements. This step will be improved in the near future.