Connect Facebook to OpenClaw on Operator.io
Facebook is a social media and advertising platform for businesses and creators. It helps you connect, share, and manage content across your public Facebook Pages.
Automate Facebook with AI
On Operator, an OpenClaw agent pilots Facebook for you. It reads your message, plans the steps, and runs them in Facebook, using actions like assign page task, create comment, create photo album.
Your agent reaches Facebook directly or through connectors like Composio MCP and Pipedream MCP, which handle the sign in and token refresh for you, so there is nothing to wire up and no API keys to paste.
What your agent can do with Facebook
Your agent can call any of these Facebook actions by name as part of a larger task. Ask for the outcome you want and it picks the right ones.
Assign Page Task
Assigns tasks/roles to a business-scoped user or system user for a specific Facebook Page. Important: This action requires a business-scoped user ID or system user ID from Facebook Business Manager. Regular Facebook user IDs cannot be us...
Create Comment
Creates a comment on a Facebook post or replies to an existing comment.
Create Photo Album
Creates a new photo album on a Facebook Page. Note: This endpoint requires the 'pages_manage_posts' permission or equivalent permissions to be granted to your Facebook application. This action is publicly visible on the Page; confirm wit...
Create Photo Post
Creates a photo post on a Facebook Page. Requires an image to be provided via either 'url' (publicly accessible image URL) or 'photo' (local image file upload). This action is specifically for posting images with optional captions, not t...
Create Post
Creates a new text or link post on a Facebook Page. Requires `pages_manage_posts` permission and manage-level Page role on the target Page. For image posts use FACEBOOK_CREATE_PHOTO_POST; for video posts use FACEBOOK_CREATE_VIDEO_POST —...
Create Video Post
Creates a video post on a Facebook Page. Requires a Page access token with `pages_manage_posts` scope and manage-level permissions on the target page.
Delete Comment
Deletes a Facebook comment. Requires a Page Access Token with appropriate permissions for comments on Page-owned content. The page_id parameter helps ensure the correct page token is used for authentication.
Delete Post
Permanently deletes a Facebook Page post. Deletion is irreversible — deleted posts cannot be recovered. For bulk deletions, keep throughput to ~1 delete/second to avoid Graph API rate limits.
Get Comment
Retrieves details of a specific Facebook comment.
Get Comments
Retrieves comments from a Facebook post or comment (for replies). This endpoint requires appropriate permissions: - For page-owned posts: A Page Access Token with 'pages_read_engagement' permission - The API automatically swaps user toke...
Get Conversation Messages
Retrieves messages from a specific conversation.
Get Current User
Validates the access token and retrieves the authenticated user's own profile via /me. Cannot fetch arbitrary users by name or ID.
Get Message Details
Retrieves details of a specific message sent or received by the Page.
Get Page Conversations
Retrieves a list of conversations between users and the Page.
Get Page Details
Fetches details about a specific Facebook Page.
Get Page Insights
Retrieves analytics and insights for a Facebook Page. Returns metrics like impressions, page views, fan counts, and engagement data. Empty objects (`{}`) in results indicate missing data, not zero values. High-volume calls risk Graph API...
Get Page Photos
Retrieves photos from a Facebook Page. CDN-based URLs (including `source`) are time-limited and expire; download and persist images promptly if long-term access is needed.
Get Page Posts
Retrieves posts from a Facebook Page. Endpoint choice: Uses /{page_id}/feed instead of /posts or /published_posts because: - /feed returns all content on page timeline (page's posts + visitor posts + tagged posts) - /posts returns only p...
Get Page Roles
Retrieves a list of people and their tasks/roles on a Facebook Page. The connected account must have management access to the target Page; otherwise the response may be empty or incomplete. Returned role types include MANAGE and CREATE_C...
Get Page Tagged Posts
Retrieves posts where a Facebook Page is tagged or mentioned. Use when monitoring brand mentions or tracking posts that tag your Page but don't appear on your Page's own feed.
Get Page Videos
Retrieves videos from a Facebook Page.
Get Post
Retrieves details of a specific Facebook post.
Get Post Insights
Retrieves analytics and insights for a specific Facebook post. Returns metrics like impressions, clicks, and engagement data. Very new posts may return empty metric values; allow a short delay before querying and treat absent fields as p...
Get Post Reactions
Retrieves reactions (like, love, wow, etc.) for a Facebook post. Very recent posts may return empty or partial reactions data; treat missing fields as incomplete coverage, not an error.
Get Scheduled Posts
Retrieves scheduled and unpublished posts for a Facebook Page. Results are cursor-paginated; follow pagination cursors to retrieve all results beyond the limit. When searching for posts near a specific time, filter to a narrow (~±5 minut...
Add Reaction
Adds a LIKE reaction to a Facebook post or comment. Note: Due to API limitations, only LIKE reactions can be added programmatically. This action is user-visible and irreversible — confirm with the user before calling.
List Managed Pages
Retrieves a list of Facebook Pages that the user manages (not personal profiles), including page details, access tokens, and tasks. Requires `pages_show_list` or `pages_read_engagement` OAuth scopes; missing scopes silently return empty...
Mark Message Seen
Marks a user's message as seen by the Page, visibly updating the read status in the user's conversation. Note: This action requires an active messaging session with the user. Facebook's messaging policy requires that users have messaged...
Publish Scheduled Post
Publishes a previously scheduled or unpublished Facebook post immediately. This action takes a scheduled or unpublished post and publishes it immediately by setting is_published to true. The post must have been previously created with pu...
Remove Page Task
Removes a user's tasks/access from a specific Facebook Page. Caller must have admin-level rights on the Page. Operates on one page_id at a time; repeat for each page if removing from multiple pages. Partial access may remain if only some...
Reschedule Post
Changes the scheduled publish time of an unpublished Facebook post. This action updates the scheduled_publish_time of a previously scheduled post. The post must have been created with published=false and a scheduled_publish_time.
Send Media Message
Sends a media message (image, video, audio, or file) from the Page to a user.
Send Message
Sends a text message from a Facebook Page (not personal profiles) to a user via Messenger. Requires explicit user confirmation before calling, as this action delivers a message to a real end user.
Toggle Typing Indicator
Shows or hides the typing indicator for a user in Messenger.
Unlike Post or Comment
Removes a like from a Facebook post or comment.
Update Comment
Updates an existing Facebook comment. IMPORTANT: This action requires a Page Access Token. The comment must belong to a post on a Page that you manage. Use the page_id parameter to ensure the correct page token is used, especially if you...
Update Page Settings
Updates settings for a specific Facebook Page. Requires the authenticated user to have MANAGE and CREATE_CONTENT tasks for the target page; verify roles via FACEBOOK_GET_PAGE_ROLES. Not all fields (about, description, general_info, etc.)...
Update Post
Updates an existing Facebook Page post.
Upload Photos Batch
Uploads multiple photo files in batch to a Facebook Page or Album. Uses Facebook's batch API for efficient multi-photo upload. Maximum 50 photos per batch.
How to connect Facebook
You authorize Facebook once from your dashboard. Operator holds the connection and refreshes the access tokens on its own, so your agent keeps working with Facebook without you signing in again. The same setup unlocks every other app your agent can reach, so you only do it once.
When you are ready, the get started guide walks through standing up your OpenClaw agent.
Common questions about Facebook
- How do I connect Facebook to Operator?
- Connecting Facebook is a one time sign in from your Operator dashboard. Operator keeps the connection live and rotates the token on its own, so the agent stays connected to Facebook and you never reauthorize by hand.
- Can my agent publish and schedule content in Facebook?
- Yes. It can draft posts, schedule them, and read back how they did once they are live. A common loop is draft, review, schedule, and publish, where you approve the copy and the agent handles the timing and the posting in Facebook.
- Do I need to write code or manage Facebook API keys?
- No. Operator manages the Facebook connection and token refresh, so there are no API keys to paste and nothing to deploy.
- Can my agent use Facebook together with my other apps?
- Yes. The same agent reaches every app you connect, so it can move between Facebook and tools like Sendgrid, Active campaign, Benchmark email in one job, reading from one and acting in another without you wiring anything between them.
Connect Facebook to another app
Your agent can run Facebook together with any of these. Each page shows what it does across both apps in one job.
More apps to automate
Apps your agent runs alongside Facebook, or browse all integrations.
Put your agent on Facebook
Sign in, connect Facebook, and hand your agent the work. Your first week is free.
Try for free