Awesome-claude-skills-cn Facebook Automation
通过 Composio 自动化 Facebook 主页管理,包括帖子创建、排程、视频上传、Messenger 对话和受众互动。
git clone https://github.com/Athe1st3154/awesome-claude-skills-cn
T=$(mktemp -d) && git clone --depth=1 https://github.com/Athe1st3154/awesome-claude-skills-cn "$T" && mkdir -p ~/.claude/skills && cp -r "$T/composio-skills/facebook-automation" ~/.claude/skills/athe1st3154-awesome-claude-skills-cn-facebook-automation && rm -rf "$T"
composio-skills/facebook-automation/SKILL.mdFacebook Automation
Automate Facebook Page operations -- create and schedule posts, upload videos, manage Messenger conversations, retrieve page insights, and handle scheduled content -- all orchestrated through the Composio MCP integration.
Toolkit docs: composio.dev/toolkits/facebook
设置
- Connect your Facebook account through the Composio MCP server at
https://rube.app/mcp - The agent will prompt you with an authentication link if no active connection exists
- Once connected, all
tools become available for executionFACEBOOK_* - Note: This toolkit supports Facebook Pages only, not personal Facebook accounts
Core Workflows
1. Discover Managed Pages
List all Facebook Pages you manage to get page IDs and access tokens for subsequent operations.
Tool:
FACEBOOK_LIST_MANAGED_PAGES
| Parameter | Type | Required | Description |
|---|---|---|---|
| string | No | Comma-separated fields (default: ) |
| integer | No | Max pages per request (default: 25) |
| string | No | User ID (default: ) |
Always run this first to cache
page_id values. Avoid repeating discovery calls -- cache the results.
2. Create & Schedule Posts
Publish or schedule text posts with optional links on a Facebook Page.
Tool:
FACEBOOK_CREATE_POST
| Parameter | Type | Required | Description |
|---|---|---|---|
| string | Yes | Numeric Page ID from managed pages |
| string | Yes | Text content of the post |
| boolean | No | to publish immediately, for draft/scheduled (default: true) |
| integer | No | Unix UTC timestamp; must be at least 10 minutes in the future |
| string | No | URL to include in the post |
| object | No | Audience targeting specifications |
When scheduling: Set
published=false and provide scheduled_publish_time as a Unix UTC timestamp.
3. Create & Schedule Video Posts
Upload and schedule video content on a Facebook Page.
Tool:
FACEBOOK_CREATE_VIDEO_POST
| Parameter | Type | Required | Description |
|---|---|---|---|
| string | Yes | Numeric Page ID |
| string | Conditional | URL of the video file (provide or ) |
| object | Conditional | Local file upload with , , |
| string | No | Video title |
| string | No | Video description |
| boolean | No | Publish immediately (default: true) |
| integer | No | Unix timestamp for scheduled publishing |
4. Manage Scheduled Posts
Review, reschedule, update, or publish scheduled content.
Tools:
-- List scheduled/unpublished posts for a pageFACEBOOK_GET_SCHEDULED_POSTS
(required),page_id
,fields
(max 100)limit
-- Change the scheduled publish timeFACEBOOK_RESCHEDULE_POST
-- Edit caption/text on an existing postFACEBOOK_UPDATE_POST
-- Publish a scheduled post immediatelyFACEBOOK_PUBLISH_SCHEDULED_POST
5. Read Page Messenger Conversations
Retrieve inbox conversations and message threads between users and your Page.
Tool:
FACEBOOK_GET_PAGE_CONVERSATIONS
| Parameter | Type | Required | Description |
|---|---|---|---|
| string | Yes | The Facebook Page ID |
| string | No | Fields to return (default: ) |
| integer | No | Conversations to return, max 25 |
Then retrieve full message threads:
Tool:
FACEBOOK_GET_CONVERSATION_MESSAGES
| Parameter | Type | Required | Description |
|---|---|---|---|
| string | Yes | Page ID that owns the conversation |
| string | Yes | Conversation ID in format (e.g., ) |
| string | No | Default: |
| integer | No | Messages to return, max 25 |
6. Send Messages & Mark as Seen
Respond to users via Messenger and mark messages as read.
Tools:
-- Send a text message from the Page to a user via MessengerFACEBOOK_SEND_MESSAGE
-- Mark a user's message as seen by the PageFACEBOOK_MARK_MESSAGE_SEEN
Warning: Both tools cause user-visible side effects. Only call after explicit confirmation.
已知陷阱
| Pitfall | Details |
|---|---|
| Scheduling too close to now | with less than ~10 minutes in the future returns HTTP 400 -- enforce a larger buffer for bulk runs |
| Unix UTC timestamps required | must be Unix UTC -- timezone conversion mistakes cause off-by-hours scheduling or validation failures |
| Cursor-based pagination | and return subsets -- follow paging cursors to get complete data |
| Large conversation payloads | Requesting embedded messages in conversations creates huge payloads -- use for full threads instead |
| Video processing delays | Uploaded videos may remain in processing state -- only schedule via after the upload is usable |
| Cache page IDs | Repeating calls adds latency -- cache per workspace/run |
| Pages only | This toolkit does not support personal Facebook accounts -- only Facebook Pages |
| Write operations need confirmation | and cause user-visible side effects -- only call after explicit user confirmation |
快速参考
| Tool Slug | Purpose |
|---|---|
| List Pages you manage with access tokens |
| Get detailed info about a specific Page |
| Create or schedule a text/link post |
| Create or schedule a video post |
| List scheduled/unpublished posts |
| Change scheduled publish time |
| Edit an existing post |
| Publish a scheduled post immediately |
| Upload a video file to a Page |
| List Messenger inbox conversations |
| Retrieve messages from a conversation |
| Send a Messenger message from the Page |
| Mark a message as seen |
| Retrieve posts from a Page feed |
| List Pages with tasks and tokens |
由 Composio 提供支持