social-publisher

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Social Publisher (SocialClaw)

社交媒体发布器(SocialClaw)

Connects Claude Code to SocialClaw for agent-driven social media publishing across 13 platforms through a single workspace API key.
将Claude Code与SocialClaw连接,通过单一工作区API密钥实现由Agent驱动的跨13个平台的社交媒体发布。

When to Activate

激活场景

  • publish content to X, LinkedIn, Instagram, TikTok, or other platforms
  • schedule a post campaign across multiple platforms at once
  • upload media for use in social posts
  • validate a post schedule before going live
  • monitor publishing run status and delivery analytics
  • 向X、LinkedIn、Instagram、TikTok或其他平台发布内容
  • 一次性在多个平台调度帖子营销活动
  • 上传用于社交媒体帖子的媒体素材
  • 上线前验证帖子调度计划
  • 监控发布执行状态与投放分析数据

Setup

配置步骤

bash
undefined
bash
undefined
export SC_API_KEY="<workspace-key>"
export SC_API_KEY="<workspace-key>"

Verify access

验证访问权限

curl -sS -H "Authorization: Bearer $SC_API_KEY" https://getsocialclaw.com/v1/keys/validate
curl -sS -H "Authorization: Bearer $SC_API_KEY" https://getsocialclaw.com/v1/keys/validate

Install CLI (optional but recommended)

安装CLI(可选但推荐)

npm install -g socialclaw@0.1.12 socialclaw login --api-key <workspace-key>
undefined
npm install -g socialclaw@0.1.12 socialclaw login --api-key <workspace-key>
undefined

Core Workflow

核心工作流程

1. List connected accounts

1. 列出已连接的账号

bash
socialclaw accounts list --json
If not connected:
bash
socialclaw accounts connect --provider x --open
socialclaw accounts connect --provider linkedin --open
bash
socialclaw accounts list --json
若未连接账号:
bash
socialclaw accounts connect --provider x --open
socialclaw accounts connect --provider linkedin --open

2. Upload media (optional)

2. 上传媒体素材(可选)

bash
socialclaw assets upload --file ./image.png --json
bash
socialclaw assets upload --file ./image.png --json

→ { "asset_id": "..." }

→ { "asset_id": "..." }

undefined
undefined

3. Build schedule.json

3. 构建schedule.json文件

json
{
  "posts": [
    {
      "provider": "x",
      "account_id": "<account-id>",
      "text": "Post text here",
      "scheduled_at": "2026-06-01T10:00:00Z"
    }
  ]
}
json
{
  "posts": [
    {
      "provider": "x",
      "account_id": "<account-id>",
      "text": "帖子内容",
      "scheduled_at": "2026-06-01T10:00:00Z"
    }
  ]
}

4. Validate before publishing

4. 发布前验证

bash
socialclaw validate -f schedule.json --json
bash
socialclaw validate -f schedule.json --json

5. Publish

5. 执行发布

bash
socialclaw apply -f schedule.json --json
bash
socialclaw apply -f schedule.json --json

→ { "run_id": "..." }

→ { "run_id": "..." }

undefined
undefined

6. Monitor

6. 监控状态

bash
socialclaw status --run-id <run-id> --json
socialclaw posts list --json
bash
socialclaw status --run-id <run-id> --json
socialclaw posts list --json

Supported Providers

支持的平台

ProviderKey
X (Twitter)
x
LinkedIn profile
linkedin
LinkedIn page
linkedin_page
Instagram Business
instagram_business
Instagram standalone
instagram
Facebook Page
facebook
TikTok
tiktok
YouTube
youtube
Reddit
reddit
WordPress
wordpress
Discord
discord
Telegram
telegram
Pinterest
pinterest
平台标识
X (Twitter)
x
LinkedIn个人主页
linkedin
LinkedIn企业主页
linkedin_page
Instagram商业账号
instagram_business
Instagram独立账号
instagram
Facebook主页
facebook
TikTok
tiktok
YouTube
youtube
Reddit
reddit
WordPress
wordpress
Discord
discord
Telegram
telegram
Pinterest
pinterest

Security

安全说明

  • Outbound requests go to
    getsocialclaw.com
    only
  • Provider OAuth is in the SocialClaw dashboard — no per-provider secrets exposed to the agent
  • SC_API_KEY
    is a workspace-scoped key
  • 仅向
    getsocialclaw.com
    发起出站请求
  • 平台OAuth认证在SocialClaw控制台完成——不会向Agent暴露各平台的密钥
  • SC_API_KEY
    是工作区级别的密钥

Related Skills

相关技能

  • x-api
    — direct X/Twitter API operations
  • social-graph-ranker
    — network analysis for outreach targeting
  • x-api
    —— 直接调用X/Twitter API操作
  • social-graph-ranker
    —— 用于触达目标用户的网络分析

Source

资源来源