Skip to content
Facebook Automation logo

Facebook Automation

Automate Facebook Page management including post creation, scheduling, video uploads, Messenger conversations, and audience engagement via Composio

SKILL.md

Full skill instructions

Facebook 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


Setup

  1. Connect your Facebook account through the Composio MCP server at https://rube.app/​mcp
  2. The agent will prompt you with an authentication link if no active connection exists
  3. Once connected, all FACEBOOK_* tools become available for execution
  4. 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

ParameterTypeRequiredDescription
fieldsstringNoComma-separated fields (default: id,name,access_token,category,tasks,about,link,picture)
limitintegerNoMax pages per request (default: 25)
user_idstringNoUser ID (default: me)

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

ParameterTypeRequiredDescription
page_idstringYesNumeric Page ID from managed pages
messagestringYesText content of the post
publishedbooleanNotrue to publish immediately, false for draft/​scheduled (default: true)
scheduled_publish_timeintegerNoUnix UTC timestamp; must be at least 10 minutes in the future
linkstringNoURL to include in the post
targetingobjectNoAudience 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

ParameterTypeRequiredDescription
page_idstringYesNumeric Page ID
file_urlstringConditionalURL of the video file (provide file_url or video)
videoobjectConditionalLocal file upload with name, mimetype, s3key
titlestringNoVideo title
descriptionstringNoVideo description
publishedbooleanNoPublish immediately (default: true)
scheduled_publish_timeintegerNoUnix timestamp for scheduled publishing

4. Manage Scheduled Posts

Review, reschedule, update, or publish scheduled content.

Tools:

  • FACEBOOK_GET_SCHEDULED_POSTS -- List scheduled/​unpublished posts for a page
    • page_id (required), fields, limit (max 100)
  • FACEBOOK_RESCHEDULE_POST -- Change the scheduled publish time
  • FACEBOOK_UPDATE_POST -- Edit caption/​text on an existing post
  • FACEBOOK_PUBLISH_SCHEDULED_POST -- Publish a scheduled post immediately

5. Read Page Messenger Conversations

Retrieve inbox conversations and message threads between users and your Page.

Tool: FACEBOOK_GET_PAGE_CONVERSATIONS

ParameterTypeRequiredDescription
page_idstringYesThe Facebook Page ID
fieldsstringNoFields to return (default: participants,updated_time,id)
limitintegerNoConversations to return, max 25

Then retrieve full message threads:

Tool: FACEBOOK_GET_CONVERSATION_MESSAGES

ParameterTypeRequiredDescription
page_idstringYesPage ID that owns the conversation
conversation_idstringYesConversation ID in t_ format (e.g., t_3638640842939952)
fieldsstringNoDefault: id,created_time,from,to,message
limitintegerNoMessages to return, max 25

6. Send Messages & Mark as Seen

Respond to users via Messenger and mark messages as read.

Tools:

  • FACEBOOK_SEND_MESSAGE -- Send a text message from the Page to a user via Messenger
  • FACEBOOK_MARK_MESSAGE_SEEN -- Mark a user's message as seen by the Page

Warning: Both tools cause user-visible side effects. Only call after explicit confirmation.


Known Pitfalls

PitfallDetails
Scheduling too close to nowFACEBOOK_CREATE_POST with scheduled_publish_time less than ~10 minutes in the future returns HTTP 400 -- enforce a larger buffer for bulk runs
Unix UTC timestamps requiredscheduled_publish_time must be Unix UTC -- timezone conversion mistakes cause off-by-hours sched

More Productivity & Planning skills

brainstorming logo
Productivity & Planning

brainstorming

Structured design dialogue that validates ideas before implementation begins.

295.4K 385.7K
View
ui-ux-pro-max logo
Productivity & Planning

ui-ux-pro-max

Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.

133.1K 383.9K
View
writing-plans logo
Productivity & Planning

writing-plans

Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.

295.4K 268K
View
using-superpowers logo
Productivity & Planning

using-superpowers

Introduction to the obra skills system with mandatory skill invocation rules and best practices.

295.4K 259.8K
View
executing-plans logo
Productivity & Planning

executing-plans

Execute a written implementation plan with critical review and task checkpoints.

295.4K 229.1K
View
dispatching-parallel-agents logo
Productivity & Planning

dispatching-parallel-agents

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View
using-git-worktrees logo
Productivity & Planning

using-git-worktrees

Isolated git worktrees with smart directory selection and safety verification.

295.4K 205.2K
View
webapp-testing logo
Productivity & Planning

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

179.7K 170.6K
View
content-strategy logo
Productivity & Planning

content-strategy

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View
repo-intake-and-plan logo
Productivity & Planning

repo-intake-and-plan

README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.

497 139.6K
View
marketing-ideas logo
Productivity & Planning

marketing-ideas

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
site-architecture logo
Productivity & Planning

site-architecture

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View

Productivity AI tools

Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View
SaveDay logo
Productivity

SaveDay

Capture, organize, and utilize your knowledge effortlessly.

Free
View
A
Productivity

Any Summary

Instant Summaries of Audio & Video Interviews with AnySummary

Freemium
View
M
Productivity

Map This

Transform PDFs into engaging mind maps.

Freemium
View
ChatPDF logo
Productivity

ChatPDF

Chat with any PDF instantly

Free
View
I
Productivity

intellisay

Create an optimal daily plan using your voice

Paid
View
A
Productivity

Aurora AI

A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.

Paid
View
AskYourPDF logo
Productivity

AskYourPDF

AskYourPDF Pricing Plans: Tailored to Your Needs

Free
View