Getting started with the TikTok API

Step-by-step guide for posting to TikTok through Post For Me

TikTok Integration Guide

This guide provides step-by-step instructions for integrating TikTok with Post For Me, enabling users to schedule and publish posts to TikTok accounts. Feel free to contact us at postforme@daymoon.dev for any additional support!


1. Create a TikTok Developer Account

  1. Visit the TikTok Developer Platform and sign up for an account.

2. Create a New Application

  1. After logging in, go to the TikTok Developer Dashboard and click Create App.
  1. Switch to Sandbox
  1. Fill in the required information:
  • App Name: Choose a name for your application.
  • Company Name: Enter your company's name.
  • App Icon: Upload your app's icon.
  • Category: Select an appropriate category.
  • Description: A brief description about your app.
  1. Provide the Terms of Service URL and Privacy Policy URL. TikTok will require you to verify the domain through DNS record or signature file.
  1. Under App Products, add:
  • Login Kit
  • Content Posting API, Enable Direct Post
  1. Configure the Redirect URI: https://app.postforme.dev/callback/<project_id>/tiktok/account

Replace <project_id> with your actual project ID or copy the full URL from the configure section.

  1. Enable the following Scopes:
  • user.info.basic
  • user.info.stats
  • user.info.profile
  • video.list
  • video.upload
  • video.publish (only if Direct Post is enabled)
  1. Verify URL properties
  • verify https://app.postforme.dev/callback/ by URL prefix, download the file for later. Required for authentication flow through Post For Me
  • verify https://data.postforme.dev/storage/v1/object/public/post-media/ by URL prefix, download the file for later. Required for Post For Me to upload media to TikTok
  • In Post For Me navigate to Project -> Configure -> TikTok -> Settings Icon
  • Upload Verification Files using the form
  • Go back to TikTok App and complete the verification for each of the URLs

Note: TikTok requires a fully developed website to approve your application. With a link to the privacy policy and terms on your homepage.


4. Integrate Credentials into Post For Me

  1. In the Post For Me dashboard, navigate to: Project -> Configure -> TikTok
  1. Paste the Client ID and Client Secret into the respective fields.
  1. For the Product field, select:
  • Login Kit (for user authentication)
  • Content Posting API (for posting content)

5. Connect a TikTok Account

  1. In Post For Me, go to: Project -> Social Media Accounts -> Connect an Account
  1. Select TikTok.
  1. Follow the authentication flow to connect a TikTok account.

3. Promote to Production

After testing the integration:

  1. In the TikTok Developer Dashboard, click on Production.
  1. Import settings from Sandbox
  1. Submit for Review

Note: After the App is approved there is an additional Audit needed for Direct Post.


Done!

Your TikTok integration is now complete. You can schedule and publish posts to TikTok accounts through Post For Me.


If you need further assistance or have questions about specific features, feel free to ask!