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
Record the demo video
- Start on your website, the one in the app’s Web/Desktop URL, with its Terms of Service and Privacy Policy links in view, then sign in to PostQueen.
- Choose Add Channel, TikTok, and approve TikTok’s consent screen with the six scopes.
- Show the channel in Channels with its avatar, name and username (
user.info.basic,user.info.profile). - Open Analytics on the channel: followers and likes (
user.info.stats) and the numbers of recent videos (video.list). - Create a post, attach a video and go through the TikTok settings in the order of TikTok’s content sharing guidelines: who can see it, the interactions, the disclosure and the consent line.
- Publish it with Post now and Self only (
video.publish), and open it on TikTok from Go to post. - Send a second post with Upload content to TikTok without posting it (
video.upload), and show it arriving in the TikTok app’s inbox on a phone: TikTok’s website does not show inbox drafts.
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:signature from the answer as a TXT record of that domain. Once the record resolves, call /business/property/verify/ with the same body: property_status 1 means verified. A verified domain covers its subdomains, and /business/property/list/?app_id=...&secret=... shows what the app has. Until it is verified, every TikTok Business post fails with “TikTok only takes media from an address verified for PostQueen”.
To move existing channels from one tile to the other, 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 limits how many accounts can post through PostQueen each day, and that limit is full right now. Your account is fine and your post is saved. Schedule it again later; the limit frees up within 24 hours.
TikTok limits how many accounts can post through PostQueen each day, and that limit is full right now. Your account is fine and your post is saved. Schedule it again later; the limit frees up within 24 hours.
MIGRATE_PROVIDERS moves tiktok to another tile, PostQueen disconnects the channel instead and the message asks for a reconnect, which carries the channel to the new tile.TikTok only takes media from an address verified for PostQueen
TikTok only takes media from an address verified for PostQueen
An account that is not a sandbox target user cannot connect
An account that is not a sandbox target user cannot connect