360 Secure SkillHub
360 安全技能中心

SocialKit TikTok Post

该 Skill 使用 TikTok 官方 Content Posting API 把视频上传到用户账号:默认进入 TikTok 收件箱成为草稿,由用户在应用内发布;直接发布模式需先查询创作者信息,并让用户自行选择隐私及评论、合拍、拼接设置。流程包含登录授权、创建帖子目录、内容校验、人工审批和发布结果上报。

分类:营销
ahmadhussain0335
ahmadhussain0335
热度 35.35
最近更新 2026-11-06 15:08:41

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add ahmadhussain0335/socialkit-tiktok-post
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
socialkit-tiktok-post
description
Sends a video to the user's TikTok as a draft (default) or posts it directly through the official Content Posting API, following TikTok's content sharing rules and the user's explicit choices. Use when the user wants to upload or post a video to TikTok.
license
MIT
metadata
{"author":"Ahmad Hussain","platform":"tiktok","requires":"socialkit-social-core"}

TikTok post

Apply socialkit-social-core. Official API only. Setup: setup.

Rules

  • Default draft mode: the video goes to the TikTok inbox and the user publishes it in the app.
  • Direct mode: run node scripts/auth.mjs --platform tiktok --creator-info, show the creator nickname and privacy options, and let the user choose privacy and comment/duet/stitch settings. Never pick defaults for them.
  • Apps owned by one user stay unaudited, so direct posts are private (SELF_ONLY).

Steps

  1. Sign in once (browser, local redirect): node scripts/auth.mjs --platform tiktok
  2. Create the post folder with the socialkit-social-core post script: node <socialkit-social-core>/scripts/post.mjs --init --dir tt-<slug> --platform tiktok --kind <video>
  3. Write post.json (text, media with alt text, options). See node scripts/publish.mjs --help.
  4. Validate: node scripts/publish.mjs --check --dir tt-<slug>
  5. Stop. Show the post. Ask the user to approve in their own terminal: node <socialkit-social-core>/scripts/post.mjs --approve --dir tt-<slug>
  6. Publish: node scripts/publish.mjs --publish --dir tt-<slug> and report the result.

Failure handling

  • unaudited_client_can_only_post_to_private_accounts: use draft mode.
  • spam_risk_too_many_posts: daily cap reached; try tomorrow.
  • Status FAILED: show fail_reason; do not retry spam-related failures.
  • APPROVAL_REQUIRED: the post changed after approval; ask again.
  • ALREADY_PUBLISHED: this folder was posted; use --allow-repost only if the user asks.