360 Secure SkillHub
360 安全技能中心

SocialKit Threads Post

该 Skill 按 socialkit-social-core 流程用 Node 脚本初始化帖文目录、生成 post.json,校验 500 字符上限、最多 5 个链接和公开媒体 URL 等限制,用户在终端批准后调用 Threads API 发布文本、图片、视频或轮播帖并返回永久链接;发布前需经 socialkit-meta-auth 完成 Threads 授权。

分类:营销
ahmadhussain0335
ahmadhussain0335
热度 36.31
最近更新 2026-11-06 15:06:13

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add ahmadhussain0335/socialkit-threads-post
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
socialkit-threads-post
description
Publishes a Threads post (text with optional link, image, video or carousel) through the official Threads API after validating the 500-character and link limits and getting the user's approval. Use when the user wants to post on Threads.
license
MIT
metadata
{"author":"Ahmad Hussain","platform":"meta","requires":"socialkit-social-core socialkit-meta-auth"}

Threads post

Apply socialkit-social-core. Setup: setup. Sign in with socialkit-meta-auth (--platform threads).

Rules

  • Text up to 500 characters (emoji count as several), at most 5 links.
  • Images and videos must be at public https:// URLs; Threads has no direct upload.
  • One optional topic tag (options.topicTag, 1-50 characters, no "." or "&").
  • No scheduling through the API.

Steps

  1. node <socialkit-social-core>/scripts/post.mjs --init --dir th-<slug> --platform threads --kind <text|image|video|carousel>
  2. Write post.json; for text posts an optional link becomes a link preview.
  3. node scripts/publish.mjs --check --dir th-<slug>
  4. Stop. Ask the user to approve in their own terminal: node <socialkit-social-core>/scripts/post.mjs --approve --dir th-<slug>
  5. node scripts/publish.mjs --publish --dir th-<slug>. Report the permalink.

Failure handling

  • THREADS_NOT_AUTHORISED or THREADS_TOKEN_EXPIRED: run socialkit-meta-auth for threads.
  • THREADS_API__LINK_LIMIT_EXCEEDED: reduce links to 5.
  • META_MEDIA_FAILED: show the error_message (format, duration, bitrate) and fix the media.