title: TikTok description: How to add TikTok to your system

💡

This integration requires that you have a TikTok developer account. It also requires that you have a public website, with https, and can upload files to that site to verify ownership.

TikTok will also not allow http:// for your app redirect URI, so you will need to be accessing Postiz from HTTPS.

Create you app

Go here: https://developers.tiktok.com/apps

Create a new app

  • App Name: MyPostiz
  • Redirect URI: (see below)

The OAuth2 Redirect URI is the location where the provider will redirect to after trying to login. This needs to set to your Postiz FRONTEND_URL + /integrations/social/ + tiktok.

  • eg: If you are running on a container, and your Postiz URL is: https://postiz.example.com, then your OAuth2 Redirect URI is https://postiz.example.com/integrations/social/tiktok
  • eg: If you are running on localhost, and your Postiz URL is http://localhost:4200, then your OAuth2 Redirect URI is http://localhost:4200/integrations/social/tiktok

You only need to set one OAuth2 Redirect URI when you are setting up your Postiz app.

Set a TOS and Privacy Policy

This needs to be on a public domain that you have access to, that is hosted on HTTPS.

Tick “Web” for your platforms.

Add apps

Add the “Login Kit” and “Content Posting API” to your app.

For “Login Kit”, set the redirect URI to http://localhost:4200/integrations/social/tiktok

For Content posting API, enable “Direct Post”.

Add scopes

  • user.info.basic
  • video.create
  • video.upload

Copy your client secret to environment variables

These can be found immediately after registering your application. The client ID is 16 characters long and the secret is 32 characters long.

TIKTOK_CLIENT_ID=1234567890123456
TIKTOK_CLIENT_SECRET=12345678901234567890123456789012

Restart Postiz with the updated environment variables

Add a TikTok channel in the Postiz web interface

Go to the Postiz web interface, and click on the “Add Channel” button. Select “TikTok” from the list of available channels. You should be redirected to TikTok to authorize the application.