← 返回
开发者工具 Key

fb_page_manager

Publish posts to a Facebook Page via the Meta Graph API. Use when the user says "post to Facebook", "FB post", "粉專發文", "社群貼文", "幫我發文", "schedule post", "排程發文...
Publish posts to a Facebook Page via the Meta Graph API. Use when the user says "post to Facebook", "FB post", "粉專發文", "社群貼文", "幫我發文", "schedule post", "排程發文...
aaazzzr aaazzzr 来源
开发者工具 clawhub v2.0.0 1 版本 100000 Key: 需要
★ 3
Stars
📥 663
下载
💾 12
安装
1
版本
#latest

概述

Facebook Page Poster

Publish content to a Facebook Page through the Meta Graph API.

Environment Variables

VariablePurpose
------
LONG_META_page_TOKENLong-lived Page Access Token with pages_manage_posts and pages_read_engagement permissions
META_PAGE_IDNumeric Page ID
META_APP_SECRETMeta App Secret for appsecret_proof

If any are missing, walk the user through {baseDir}/references/token-setup-guide.md.

Workflow

1. Parse the request

Extract from the user message:

  • Content: the text to post
  • Language direction: ZH→EN, EN→ZH, ZH→ZH, or EN→EN
  • Post type: text | image | link-in-comment | scheduled (combinable)
  • Tone: infer automatically — marketing/social (upbeat, CTA) for promotions and events; formal/professional for announcements and corporate. Ask if ambiguous.
  • Image: local file path or URL (if applicable)
  • Schedule: ISO 8601 timestamp (if applicable)
  • Link: URL for the first comment (if applicable)

2. Draft and translate — always preview first

Never publish without user confirmation.

If source language differs from target, translate with these rules:

  • Preserve meaning, intent, hashtags
  • Adapt idioms naturally, do not translate literally
  • Keep brand names and proper nouns in original form
  • Maintain emoji usage unless unnatural in target language

Present preview:

📋 Post Preview
─────────────────
[Post text here]

🔗 First comment: [URL or N/A]
🖼️ Image: [filename/URL or N/A]
⏰ Schedule: [time or "Publish immediately"]
─────────────────
Confirm? (yes / edit / cancel)

3. Publish

Run the script at {baseDir}/scripts/fb-post.js:

# Text-only
node {baseDir}/scripts/fb-post.js --type text --message "content"

# Image (file)
node {baseDir}/scripts/fb-post.js --type image --message "content" --image-file /path/to/img.jpg

# Image (URL)
node {baseDir}/scripts/fb-post.js --type image --message "content" --image-url "https://..."

# Link in first comment
node {baseDir}/scripts/fb-post.js --type text --message "content" --comment-link "https://..."

# Scheduled (append to any above)
node {baseDir}/scripts/fb-post.js --type text --message "content" --schedule "2025-12-25T10:00:00+0800"

Flags are combinable. Example — image + comment link + scheduled:

node {baseDir}/scripts/fb-post.js --type image --message "content" --image-url "https://..." --comment-link "https://..." --schedule "2025-12-25T10:00:00+0800"

4. Report result

  • Show the post ID
  • Confirm comment was posted (if link-in-comment)
  • Confirm scheduled time (if scheduled)
  • On error, show the message and suggest a fix

Error reference

ErrorLikely causeFix
---------
OAuthException / Invalid tokenToken expiredRefresh via {baseDir}/references/token-setup-guide.md
Permission deniedMissing pages_manage_postsRe-authorize token with correct scopes
Scheduled time in pastMust be ≥10 min in the futureAdjust the timestamp
Image too large>10 MBCompress or resize
Rate limitToo many requestsWait a few minutes, retry

版本历史

共 1 个版本

  • v2.0.0 当前
    2026-03-30 12:01 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Marketing Mode

thesethrose
{"answer":"营销模式整合23项全能技能,涵盖策略、心理、内容、SEO、转化优化及付费增长。适用于营销策略、文案、SEO、转化优化、付费广告及各类营销战术需求。"}
★ 161 📥 24,929
content-creation

humanizer-zh

liuxy951129-cpu
去除文本中的 AI 生成痕迹。适用于编辑或审阅文本,使其听起来更自然、更像人类书写。 基于维基百科的"AI 写作特征"综合指南。检测并修复以下模式:夸大的象征意义、 宣传性语言、以 -ing 结尾的肤浅分析、模糊的归因、破折号过度使用、三段
★ 53 📥 28,123
content-creation

Marketing Skills

jchopard69
{"answer":"获取23个营销模块,包含CRO、SEO、文案、分析、发布、广告及社媒的清单、框架与现成交付物。"}
★ 142 📥 30,250