# Connect Claude to Facebook

Source: https://postgale.com/guides/claude/facebook

Yes, Claude can post to Facebook Pages through Postgale. Add https://postgale.com/mcp as a custom connector in claude.ai, Claude Desktop or the mobile app (or with one command in Claude Code) and sign in to Postgale, connect your Facebook Pages account in Postgale once, and Claude can page posts, photos, video, Reels, Stories, comments and Messenger. A person can be required to approve every post, reply and message before it goes out.

## Can Claude post to Facebook Pages?

Postgale is the secure layer for AI agents on social media. MCP (Model Context Protocol) is the open standard that lets AI assistants such as Claude and Cursor use outside tools. An MCP server is what they connect to. Claude does not reach Facebook on its own; with Postgale connected it gets tools for the Facebook accounts you connected and nothing else.

| Task | What Postgale does |
| --- | --- |
| Publish | Text or link posts, 1 to 10 photos, video, Reels and Stories (photo or video); drafts; optional first comment. |
| Edit and delete | Change the text of a published post or delete it. |
| Comments | List comments and replies, reply, hide, delete and like. |
| Messenger | List conversations, read messages and reply (text up to 2,000 characters or an attachment) inside Meta’s 24-hour window. |
| Insights | Page views, post engagement, follows; post reach, reactions by type and clicks. |
| Meta Ads | Boost a post or create campaigns, ad sets and creatives through the connected Page. Everything is created paused and only spends with `confirm: true`. |

## What do you need?

- A Facebook Page you administer. Personal profiles cannot be connected.
- A Postgale workspace; the admin signs in with Facebook and chooses which Pages to connect.
- For photos, video, Reels and Stories: media on a public HTTPS URL (upload it with `upload_media` or bring your own).
- Claude, set up as below (claude.ai, Claude Desktop, Claude mobile and Claude Code).

## Step 1: connect your Facebook Pages account

1. Create a Postgale workspace and open Dashboard → Accounts.
2. Choose Connect Facebook Pages and sign in with the account you own, on the platform’s own page. Postgale stores the tokens encrypted and refreshes them.

## Step 2: connect Claude to Postgale

1. Create a Postgale workspace and connect the social accounts the agent may use under Dashboard → Accounts.
2. In Claude, open Settings → Connectors → Add custom connector, and paste the server URL:

Connector URL:
```text
https://postgale.com/mcp
```

1. Choose Connect. A Postgale page opens in the browser: sign in, pick the workspace the app may use and approve. The consent page names the app and where it returns to; approve only requests you started yourself.
2. Back in Claude, enable the Postgale tools in a new chat and ask: “Which social accounts are connected in Postgale?” Claude calls `list_accounts` and answers with the accounts and their status.

## How do I set up Claude Code?

1. Create a Postgale workspace and connect the social accounts the agent may use under Dashboard → Accounts.
2. In a terminal, add the server:

Terminal:
```bash
claude mcp add --transport http postgale https://postgale.com/mcp
```

1. Run `/mcp` inside Claude Code, select postgale and choose Authenticate. A Postgale page opens in the browser: sign in, pick the workspace the app may use and approve. The consent page names the app and where it returns to; approve only requests you started yourself.
2. Ask: “Which social accounts are connected in Postgale?” to check the connection.

To use an API key instead (for example on a server without a browser), create one under Dashboard → API keys and add the header:

Terminal (API key):
```bash
claude mcp add --transport http postgale https://postgale.com/mcp \
  --header "Authorization: Bearer sk_…"
```

## What can I ask Claude to do on Facebook?

Check the connection first: “Which Facebook accounts are connected in Postgale?” Then, in plain language:

> Ask your agent: “Share our new blog post on the Facebook Page with a two-line intro, scheduled for Monday at 10am.”

> Ask your agent: “Post this video as a Facebook Reel with the caption from the brief, as a draft.”

> Ask your agent: “Draft replies to today’s Messenger messages about delivery times.”

POST /api/v1/posts (Facebook Page):
```json
{
  "content": "The fall drop is live. Shipping Thursday. Read the story behind it:",
  "platforms": [
    {
      "accountId": "acc_facebook_page",
      "platformSpecificData": {
        "link": "https://example.com/blog/fall-drop"
      }
    }
  ],
  "publishNow": true
}
```

## Which Facebook rules does Postgale enforce?

- One Postgale account per Page. After sign-in the admin picks Pages; an agent that started the connection completes the choice with `select_connection`.
- Post text up to 63,206 characters. Photo sets take 2 to 10 images.
- Reels and video Stories are uploaded by URL in Facebook’s two-phase flow; Postgale tracks processing and reports when the post is live.
- Messenger replies are allowed within 24 hours of the person’s last message (7 days with Meta’s human-agent tag); outside the window Postgale sends nothing and says why.
- Ads never spend by accident: boosts and campaigns are created paused and need an explicit confirmation to go live.

## How do I keep a person in the loop?

- Approval: tick “Hold posts from this app for approval” when you sign in, or in the Postgale dashboard require approval for the API key the agent uses (or for the whole workspace, or one account). Posts then wait as pending approval; comment replies and moderation, direct messages, WhatsApp sends and edits to live posts wait in the same queue. A person approves, edits or rejects each one in Dashboard → Approvals; the agent’s own key or sign-in cannot approve.
- Tool annotations: every Postgale tool declares whether it only reads, writes, or publishes live, deletes or spends. Clients that honour annotations ask before destructive tools run.
- Audit log: every write the agent makes is recorded with the key or the connected app, the action and the time.
- Revoking: each sign-in appears under Dashboard → Connected apps and each key under Dashboard → API keys; either can be revoked at any time.

## What can’t an agent do on Facebook through Postgale?

- Post to a personal profile or a group. Facebook’s API publishes to Pages.
- Message someone first on Messenger. Meta only allows replies to people who wrote to the Page.
- Spend on ads without a confirmation step.

## Questions

### Can Claude post to Facebook Pages?

Yes, Claude can post to Facebook Pages through Postgale. Add https://postgale.com/mcp as a custom connector in claude.ai, Claude Desktop or the mobile app (or with one command in Claude Code) and sign in to Postgale, connect your Facebook Pages account in Postgale once, and Claude can page posts, photos, video, Reels, Stories, comments and Messenger. A person can be required to approve every post, reply and message before it goes out.

### Does Claude see my Facebook password or tokens?

No. The account owner signs in on the platform’s own page once, and Postgale stores the resulting tokens encrypted. Claude only holds a Postgale sign-in, which you can revoke at any time.

### Can I approve what Claude sends to Facebook before it goes live?

Yes. Turn on approval for the connected app (or tick “Hold posts from this app for approval” when you sign in), the account or the whole workspace. Posts, replies and messages then wait in the Postgale dashboard until a person approves, edits or rejects them; Claude’s own access cannot approve.

### Can Claude schedule Facebook posts?

Yes. Ask for a date and time; Postgale stores the post as scheduled and publishes it then, and reports the result (post.published or post.failed) on your webhook and in get_post.

## Related

- [Claude guide](https://postgale.com/guides/claude)
- [Facebook Pages for AI agents](https://postgale.com/integrations/facebook)
- [Claude and Instagram](https://postgale.com/guides/claude/instagram)
- [Claude and Threads](https://postgale.com/guides/claude/threads)
