Before you start
Create the app
Connect an app
Fill in the app details
Add Login Kit
FRONTEND_URL + /integrations/social/ + the network’s identifier, for example
https://postqueen.example.com/integrations/social/pinterest.Most networks need exactly one URI, with no trailing slash. Two exceptions: TikTok Business needs
the trailing slash (/integrations/social/tiktok-business/), and a Google web client that also
serves Google Business Profile lists both /integrations/social/youtube and
/integrations/social/gmb. Channel developer apps lists every
network’s ending.For the TikTok tile the URI has no trailing slash. TikTok Business is the exception and needs one: see TikTok Business.https redirect URIs with no query string. That is why PostQueen wraps a plain http address through redirectmeto.com: register the wrapped address, character for character.Add the Content Posting API
Add the six scopes
user.info.basic, user.info.profile, user.info.stats, video.list, video.upload and video.publish. Add no others: each scope you request has to be shown in your review video.Verify the domain your media comes from
FRONTEND_URL host with local storage, or your public bucket’s domain with Cloudflare R2.Videos on the TikTok tile are uploaded by PostQueen itself, so they do not depend on this step.Copy the client key and secret
Set the variables
Add the two keys to your environment:docker restart or
docker compose restart keeps the old container and its old environment.
In the folder that holds docker-compose.yaml, recreate only the postqueen service:
docker compose down for a settings change: on
a host that runs other Compose services in the same project, it stops them too.
Then open PostQueen, go to Channels, choose Add Channel and pick this network. You are
sent to its login to authorize PostQueen, and the channel appears in the Channels list once you
accept.
App review
TikTok has two separate gates, and passing the first does not open the second.Test in a sandbox
Submit the app for review
Pass the Content Posting API audit
TikTok Business (optional)
The TikTok Business tile talks to TikTok’s Business API instead of the Content Posting API. It needs a separate app, registered on the TikTok API for Business developer portal, with its own keys:MIGRATE_PROVIDERS="tiktok:tiktok-business" sends a reconnect of the old tile through the new tile’s login and keeps the channel and its posts, and HIDDEN_PROVIDERS="tiktok" takes the old tile out of Add Channel. Both are in the configuration reference.
Troubleshooting
redirect_uri error on TikTok's login screen
redirect_uri error on TikTok's login screen
FRONTEND_URL is http, register the redirectmeto.com form from step 3.Not enough scopes, when choosing a provider, please add all the scopes
Not enough scopes, when choosing a provider, please add all the scopes
TikTok daily user limit reached, please re-connect your account
TikTok daily user limit reached, please re-connect your account
You have to upload the picture/video to PostQueen when sending a URL
You have to upload the picture/video to PostQueen when sending a URL
An account that is not a sandbox target user cannot connect
An account that is not a sandbox target user cannot connect