Skip to main content

Publish Post

The Publish Post script is used to publish videos or images on TikTok.

Steps

  1. Prepare materials:
    • Option 1: Click the Media Library button to upload videos/images to the media library.
    • Option 2: Use a local folder as the material source and set the folder path in the script configuration.
  2. Select the devices on which you want to run the script.
  3. Click Scripts > Publish Post.
  4. Configure task settings:
    • Material Source: Choose Media Library or Local Folder.
    • Local Folder Path: If using a local folder, specify the path containing videos/images.
    • Posting Method: Choose how to post: System Share, Add Button (+), or “Use Sound via Search”.
    • Sound Name: When using “Use Sound via Search”, you can:
      • Enter a sound name to search (e.g., “original sound”, “trending music”)
      • Directly enter a TikTok sound link (e.g., https://www.tiktok.com/t/ZP8hvBwCb/)
    • Content Type: Select video or image.
    • Add Sound Toggle: Enable/disable adding sound.
    • Upload Waiting Time: Set delay after uploading (5–60 seconds) to ensure TikTok’s servers fully process the content before continuing.
    • Add Product Link Toggle: Enable/disable adding product links.
    • Caption: Set the caption, including mentions (@TikMatrixPhoneFarm) and hashtags (#tag1 #tag2 #tag3). One caption per line. To separate title and description, use ## (e.g., Title##Long Description).
    • Material Tags: Filter materials by tag. If not set, all materials will be used.
  5. Click Start Script to begin execution.

Material Management

Music Usage Modes

When the Posting Method is set to Use Sound via Search, the script supports two modes for adding music:

1. Sound Search Mode

Enter a sound name to search inside TikTok:

  • Examples: original sound, trending music, viral beat
  • The script will search TikTok’s sound library and select the first matching result
  • Best for trending/popular sounds

Enter a direct TikTok sound URL to use a specific sound:

  • Supported link formats:
    • Short link: https://www.tiktok.com/t/ZP8hvBwCb/
    • Music page: https://www.tiktok.com/music/original-sound-7473897776619834646
    • VM link: https://vm.tiktok.com/ZMhvBwCbD/
  • The script automatically detects links starting with https:// and opens them directly
  • Best for using specific sounds from specific videos

Media Library

  • Material Tags: Add tags to materials for filtering during publishing. If not specified, all materials are used.
  • Material Caption: You can assign a custom caption to each material. If set, it overrides the publish settings.
  • Material Username: You can assign a username to each material. Materials with matching usernames are prioritized.
  • Material Sorting: Assign sorting numbers to materials (useful for multi-image posts). Lower numbers appear earlier.

Local Folder Source

  • Folder Structure:

    /material-root/
    ├── caption.txt (optional - root fallback)
    ├── sound_names.txt (optional - root fallback)
    ├── sound_urls.txt (optional - root fallback)
    ├── @username1/
    │ ├── video1.mp4
    │ ├── video2.mp4
    │ ├── image1.jpg
    │ ├── image2.jpg
    │ ├── caption.txt (optional)
    │ ├── sound_names.txt (optional)
    │ └── sound_urls.txt (optional)
    ├── @username2/
    │ ├── content1.mp4
    │ ├── content2.jpg
    │ ├── caption.txt (optional)
    │ ├── sound_names.txt (optional)
    │ └── sound_urls.txt (optional)
    └── ...

  • Folder Path: Specify the root path containing username subfolders.

  • Username Subfolders: Each username must have its own subfolder (e.g., @username1, @username2).

  • Root Folder Fallback: If a username folder does not exist or username is empty, materials and settings will be read from the root folder.

  • Supported Formats:

    • Video: MP4
    • Image: JPG, PNG
  • Caption File: An optional caption.txt per username folder for custom captions. Falls back to root caption.txt if not found.

  • Music Files:

    • sound_names.txt: Sound names for search, one per line. Reads in order and loops when reaching the end.
    • sound_urls.txt: TikTok sound URLs, one per line. Reads in order and loops when reaching the end.
    • If username folder does not exist, reads from root music files.
  • File Selection:

    • Videos: randomly choose one each time
    • Images: select multiple depending on count
  • Usage Tracking: Files are automatically marked as used to prevent repetition.

  • Spintax Support: Caption files support spintax format {option1|option2|option3} for random text generation.

    Spintax Example:

    {Good morning|Hello|Hi}! Check out this {amazing|incredible|awesome} video!

    Possible outputs:

    • “Good morning! Check out this amazing video!”
    • “Hello! Check out this incredible video!”
    • “Hi! Check out this awesome video!”

    Complex Spintax Example:

    {🔥|✨|🎉} {Don’t miss|Check out|Watch} this {amazing|incredible|awesome} {video|content|post}!
    {Follow for more|Like and share|Tag your friends} {#trending|#viral|#fyp} #tiktok

    Caption.txt Example:

    {Morning motivation|Daily inspiration|Start your day}! 💪

    {Loving|Enjoying|Obsessed with} this {beautiful|amazing|stunning} view! 🌅

    {Can’t believe|So excited about|Thrilled with} this {moment|experience|adventure}! ✨

    Sound_names.txt Example:

    Original sound
    Trending music
    Viral beat
    Popular song
    Dance music

    Sound_urls.txt Example:

    https://www.tiktok.com/t/ZP8hvBwCb/
    https://www.tiktok.com/music/original-sound-7473897776619834646
    https://vm.tiktok.com/ZMhvBwCbD/
    https://www.tiktok.com/t/ZP8hvBwCb/

FAQ

  1. Why does the task fail?

    • Automation scripts simulate user actions based on TikTok/Instagram behaviors. Failures may occur due to network issues, app glitches, unexpected pop-ups, device performance issues, compatibility issues, etc.
    • If failures persist after retries, submit a support ticket.
  2. How can I run tasks unattended?

    • Create a device group and set a schedule in the group's Post settings. The software will automatically create and run publishing tasks at the specified time every day.
  3. How to control the order of slideshow posts?

    • Set sorting numbers for each image material in the media library. Lower numbers appear earlier.

    • You may also batch-import materials using filenames that follow this pattern:

      • sort_1_description.png
      • sort_2_description.png
      • sort_3_description.png
  4. How to use different materials, captions, and music for each account?

    • With local folders: create subfolders for each username and add caption.txt, sound_names.txt, or sound_urls.txt files to define custom captions and music. The script prioritizes matching username folders.
    • With the media library: set username and caption fields for each material, and the script will prioritize matching materials.
  5. What material formats are supported?

    • Video: MP4
    • Image: JPG, PNG
  6. Can images and video materials be reused?

No. To protect your accounts, our system automatically marks materials as used after they have been posted so they won't be selected again. This helps prevent duplicate posts and reduces the risk of account flags or bans.