Facebook Graph API Skill (Secure)
/install facebook-secure
Facebook Graph API Skill (Advanced)
Purpose
Provide a production-oriented guide for building Facebook Graph API workflows for Pages: publishing posts, managing comments, and operating Page content safely using direct HTTPS calls.
Best fit
- You need Page posting and comment workflows.
- You want a professional command design and safe operational guidance.
- You prefer direct HTTP requests rather than SDKs.
Not a fit
- You need advanced ads or marketing APIs.
- You must use complex browser-based OAuth flows.
Quick orientation
- Read
references/graph-api-overview.mdfor base URLs, versions, and request patterns. - Read
references/page-posting.mdfor Page publishing workflows and fields. - Read
references/comments-moderation.mdfor comment actions and moderation flows. - Read
references/permissions-and-tokens.mdfor access types and scope guidance. - Read
references/webhooks.mdfor subscriptions and verification steps. - Read
references/http-request-templates.mdfor concrete HTTP request payloads.
Required inputs
- Facebook App ID and App Secret.
- Target Page ID(s).
- Token strategy: user token → Page access token.
- Required permissions and review status.
Expected output
- A clear Page workflow plan, permissions checklist, and operational guardrails.
Operational notes
- Use least-privilege permissions.
- Handle rate limits and retries.
- Log minimal identifiers only.
Security notes
- Never log tokens or app secrets.
- Validate webhook signatures.
Credentials & Secret Management
This skill requires the following environment variables to be set:
FB_APP_ID– Your Facebook App ID.FB_APP_SECRET– Your Facebook App Secret (highly sensitive).FB_PAGE_ID– The target Facebook Page ID.FB_ACCESS_TOKEN– A Page access token with sufficient permissions.
Best practices:
- Store secrets in a secure vault or environment manager; do not hardcode.
- Use different tokens for development and production.
- Rotate tokens periodically and after any suspected compromise.
- Restrict App Secret access to minimal personnel.
Incident Response
If a token or secret is suspected to be leaked:
- Immediately revoke the token in the Facebook Developer Dashboard.
- Generate a new Page access token.
- Rotate the App Secret if necessary.
- Review logs for unauthorized usage.
Authentication
All Graph API calls must include a valid access token either as a query parameter access_token or in the Authorization: Bearer \x3Ctoken> header. See references/http-request-templates.md for examples.
Additional References
references/security-and-secrets.md– Detailed security guidelines.references/permissions-and-tokens.mdnow includes environment variable requirements.references/http-request-templates.mdincludes authentication patterns.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install facebook-secure - 安装完成后,直接呼叫该 Skill 的名称或使用
/facebook-secure触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Facebook Graph API Skill (Secure) 是什么?
OpenClaw skill for Facebook Graph API workflows focused on Pages posting, comments, and Page management using direct HTTPS requests. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 170 次。
如何安装 Facebook Graph API Skill (Secure)?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install facebook-secure」即可一键安装,无需额外配置。
Facebook Graph API Skill (Secure) 是免费的吗?
是的,Facebook Graph API Skill (Secure) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Facebook Graph API Skill (Secure) 支持哪些平台?
Facebook Graph API Skill (Secure) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Facebook Graph API Skill (Secure)?
由 kevinkom-byte(@kevinkom-byte)开发并维护,当前版本 v1.0.2。