Connector guide7-minute read21 MCP tools7 languages

How to Connect Facebook Pages to ChatGPT via MCP

Let your AI run a Facebook Page: read posts, comments and Page and post insights, publish, schedule and edit posts and photo posts, reply to, hide or delete comments, and read and answer Messenger conversations. Everything that publishes or sends asks for your confirmation first.

HCBy HelpCode teamUpdated 7 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

Facebook Pages

Facebook Pages

Let your AI run a Facebook Page: read posts, comments and Page and post insights, publish, schedule and edit posts and photo posts, reply to, hide or delete comments, and read and answer Messenger conversations. Everything that publishes or sends asks for your confirmation first.

tools

21

Region

INTL

Category

Social Media

Authentication

Bearer Token

Required env vars

FACEBOOK_PAGE_ACCESS_TOKENFACEBOOK_PAGE_ID
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the Facebook Pages in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

Summary

Let your AI run a Facebook Page: read posts, comments and Page and post insights, publish, schedule and edit posts and photo posts, reply to, hide or delete comments, and read and answer Messenger conversations. Everything that publishes or sends asks for your confirmation first.

Try asking

Example prompts for Facebook Pages

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

Facebook Pages · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Facebook Pages, paste your credentials, mint an MCP API key and you're done. No Docker, no git clone, no local server.

Facebook Pages + ChatGPT

Let your AI run a Facebook Page: read posts, comments and Page and post insights, publish, schedule and edit posts and photo posts, reply to, hide or delete comments, and read and answer Messenger conversations. Everything that publishes or sends asks for your confirmation first.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

FACEBOOK_PAGE_ACCESS_TOKEN, FACEBOOK_PAGE_ID

Step 1 — Get credentials

  1. Create an app at https://developers.facebook.com/apps/creation/ with the use case Manage everything on your Page and add the permissions pages_show_list, pages_read_engagement, pages_read_user_content, pages_manage_posts, pages_manage_engagement and read_insights. For Messenger, also add the use case Engage with customers on Messenger from Meta, which brings pages_manage_metadata and pages_messaging. While you manage the Page yourself and have a role on the app, no App Review is needed.
  2. Open the Graph API Explorer at https://developers.facebook.com/tools/explorer/, pick the app, click Generate Access Token with those permissions and select your Page when Facebook asks.
  3. Paste that user token into the Access Token Debugger at https://developers.facebook.com/tools/debug/accesstoken/ and click Extend Access Token. You get a long-lived user token (about 60 days).
  4. Back in the Explorer, with the long-lived token, run GET me/accounts?fields=id,name,access_token. Copy the access_token next to your Page into FACEBOOK_PAGE_ACCESS_TOKEN (without the word Bearer) and its id into FACEBOOK_PAGE_ID. This Page token has no expiry date: the Debugger shows it as type Page, expires Never.
  5. Install the connector and run facebook_pages_get_page to check the setup.

Why a Page token: only a Page access token can act as the Page. A user token cannot post, comment or message as the Page, and a Page token copied straight from the Explorer expires within hours. A Page token stops working when its creator loses their role on the Page, changes their password or removes the app.

Confirm first: publishing, scheduling, editing, commenting, replying and messaging are visible to the public or to a customer at once, so the AI shows you exactly what it will post or send and waits for your yes. facebook_pages_delete_post and facebook_pages_delete_comment are switched off at install; facebook_pages_hide_comment is the gentler option.

Messenger: a Page can only message people who wrote first. Replies are allowed within 24 hours of the person's last message; after that, only a person answering by hand within 7 days, with the Human Agent permission from App Review. Without App Review, messaging only reaches people who have a role on the app; to message customers, request Advanced Access for pages_messaging.

Insights: they need read_insights and at least 100 Page likes, refresh about once a day and cover at most 90 days per request.

Common errors: 190 means the token expired or was revoked, so create a new Page token. 10, 200 or 283 mean a missing permission; code 3 means a user token was pasted instead of the Page token. 1545041 or 10 on a send means the Messenger window is closed. 4, 17, 32, 613, 80001 and 80006 are rate limits: wait a few minutes.

The connector works with one Page and does not cover ads.

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in ChatGPT

Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide shows YOUR_SERVER_ID.

ChatGPT adds MCP servers as plugins on its Plugins page, on the web and on paid plans. Developer mode is no longer needed. In a Business workspace only admins and owners can add one; in Enterprise and Edu an admin can grant the Create plugins with MCPs permission.

  1. Go to chatgpt.com/plugins, click +, then Add custom MCP server.
  2. Enter a name, e.g. Name: Facebook Pages.
  3. Under Connection, enter the Server URL https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID and keep Authentication on OAuth.
  4. Select I understand and want to continue, then Create as a plugin. When ChatGPT asks, sign in to AnythingMCP and allow access.
  5. Install the new plugin from your personal plugins, then type @ in a chat and pick it.

Available tools

ToolWhat it does
facebook_pages_get_pageGet the configured Facebook Page: name, username, link, category, about text, website, contact details, likes (fan_count) and…
facebook_pages_list_postsList the Page's own posts, newest first, with text, time, permalink, type, picture, shares and the number of comments and reactions
facebook_pages_list_feedList everything on the Page's feed, newest first: the Page's own posts including unpublished ones (is_published false) and posts by…
facebook_pages_list_scheduled_postsList the Page's scheduled posts that have not gone live yet, with text, link and scheduled_publish_time (Unix seconds)
facebook_pages_get_postGet one Page post by id: text, time, permalink, type, author, attachments, whether it is published or hidden, its scheduled time, shares…
facebook_pages_create_postPublish a text or link post on the Page right away, as the Page
facebook_pages_schedule_postSchedule a text or link post to go live on the Page at a set time, between 10 minutes and 30 days ahead
facebook_pages_create_photo_postPost a photo from a public image URL on the Page, with an optional caption; set published false with scheduled_publish_time to schedule it
facebook_pages_update_postChange a Page post: replace its text, publish a scheduled or unpublished post now (is_published true), or move a scheduled post to another…
facebook_pages_delete_postDelete a Page post permanently, including its comments and reactions
facebook_pages_list_commentsList the comments on a post, or the replies to a comment when you pass a comment id, with text, author, time, likes, reply count and…
facebook_pages_comment_on_postWrite a public comment on a post as the Page, optionally with an image from a URL
facebook_pages_reply_to_commentReply publicly to a comment as the Page, in the comment's thread
facebook_pages_hide_commentHide or unhide a comment on the Page's posts
facebook_pages_delete_commentDelete a comment on the Page's posts permanently, with its replies
facebook_pages_get_page_insightsGet Page insights per day, week or 28 days: views of the Page's content (page_media_view), unique viewers, post engagements, followers, new…
facebook_pages_get_post_insightsGet lifetime insights for one Page post: how often it was displayed (post_media_view), unique viewers, clicks, reactions by type and, for…
facebook_pages_list_conversationsList the Page's Messenger conversations, most recently active first, with the participants (name and Page-scoped id) and the last update…
facebook_pages_list_messagesList the messages of one Messenger conversation, newest first, with text, sender, recipient and time
facebook_pages_send_messageSend a Messenger text message as the Page to a person who has written to the Page
facebook_pages_send_private_replyAnswer a comment privately: sends one Messenger message as the Page to the person who wrote the comment, with a link to it

Example prompts

  • "Summarize how our last 10 posts performed: views, clicks and reactions, and tell me which one did best."
  • "Show me the comments on our latest post that have no reply from us yet, and draft answers for me to approve before you post them."
  • "Which Messenger conversations got a message from a customer in the last 24 hours? Draft a reply to each and show them to me before sending."
  • "Schedule a post for next Monday at 9:00 announcing our new opening hours, and show me the text and time before you schedule it."

FAQ

Does the free ChatGPT plan work with custom MCP servers? OpenAI documents custom MCP servers for paid plans only; the Free plan is not on its list.

Next steps

Was this guide helpful?

Your Facebook Pages agent is one click away.

Install the connector, paste the key, prompt ChatGPT. Free for 7 days, no credit card.

Related guides

Connectors

How to Connect Facebook Pages to Claude via MCP

Let your AI run a Facebook Page: read posts, comments and Page and post insights, publish, schedule and edit posts and photo posts, reply to, hide or delete comments, and read and answer Messenger conversations. Everything that publishes or sends asks for your confirmation first.

Connectors

How to Connect Facebook Pages to Cursor via MCP

Let your AI run a Facebook Page: read posts, comments and Page and post insights, publish, schedule and edit posts and photo posts, reply to, hide or delete comments, and read and answer Messenger conversations. Everything that publishes or sends asks for your confirmation first.

Connectors

How to Connect Facebook Pages to Gemini via MCP

Let your AI run a Facebook Page: read posts, comments and Page and post insights, publish, schedule and edit posts and photo posts, reply to, hide or delete comments, and read and answer Messenger conversations. Everything that publishes or sends asks for your confirmation first.

Connectors

How to Connect Facebook Pages to Meta Muse via MCP

Let your AI run a Facebook Page: read posts, comments and Page and post insights, publish, schedule and edit posts and photo posts, reply to, hide or delete comments, and read and answer Messenger conversations. Everything that publishes or sends asks for your confirmation first.

Connectors

Facebook Pages to MCP: Drive Facebook Pages from any AI Agent

Let your AI run a Facebook Page: read posts, comments and Page and post insights, publish, schedule and edit posts and photo posts, reply to, hide or delete comments, and read and answer Messenger conversations. Everything that publishes or sends asks for your confirmation first.

Connectors

How to Connect Avito to ChatGPT via MCP

Let your AI work with your Avito business account: list your ads and change their prices, read views, contacts and calls statistics, check autoload uploads and their errors, the feed format and your wallet, and read Avito Messenger chats. Sending messages and changing autoload settings are optional and off by default.