← Fort Tools

Let your AI post to your Facebook Page

Set up a private one-tap button so your AI assistant can post to your Page for you — without ever wrestling Facebook's developer tools or copy-pasting tokens.

About 20 minutes, once. After that it's literally one tap.

Why this exists

Normally, to let any app or AI post to your Facebook Page, Facebook makes you go into their developer site, generate an "access token" by hand, and the token expires so you keep redoing it. This sets up a tiny helper that does all of that for you — you tap once, it grabs the key, locks it away safely, and your AI posts through it. Your AI never even sees the key.

What you'll need

A Facebook Page you adminA free Cloudflare account~20 minutesAn AI that can call a web link

1 Create your Facebook app

  1. Go to developers.facebook.comMy AppsCreate App.
  2. Choose Business, name it anything, create it.
  3. Open App settings → Basic — copy your App ID and App Secret (click Show).
Turn on Page posting. In Use cases → "Manage everything on your Page" → Customize, make sure pages_manage_posts and pages_read_engagement are in the list. They live here, not the obvious dropdown — the #1 thing people miss.

2 Deploy your connector

  1. Deploy the connector to your free Cloudflare account.
  2. Set three values: FB_APP_ID, FB_APP_SECRET, and GATE (a private password you make up — it protects your button).
  3. You'll get an address like the one below. Open it; it shows you a line to copy in Step 3.
https://your-connector.workers.dev
One-click deploy coming soon. A "Deploy to Cloudflare" button is being packaged; until then it's a manual deploy.

3 Tell Facebook to trust your connector

  1. Copy the line your connector showed you (ends in /callback):
https://your-connector.workers.dev/<your-GATE>/callback
  1. In your Facebook app: Facebook Login → Settings → Valid OAuth Redirect URIs → paste it → Save.

4 Connect your Pages — the one tap

  1. On your phone, open your private connect link:
https://your-connector.workers.dev/<your-GATE>
  1. Tap Allow on Facebook's normal screen.
  2. You'll see "Connected" with your Pages listed. Done — nothing to copy.
What happened: the connector grabbed your Page's posting key, encrypted it, and stored it inside itself. You never saw it. Your AI won't either.

5 Point your AI at it

To post to my Facebook Page, send a POST to https://your-connector.workers.dev/post with header "Authorization: Bearer <your-GATE>" and JSON body {"page":"My Page Name","message":"the post text"}. Send a normal browser User-Agent or Cloudflare will block you.
Gotcha: if your AI gets error code: 1010, it forgot the browser User-Agent header. Add a normal Mozilla/5.0 one.

If it ever stops working

Tokens can get wiped (a password reset does it). You don't redo any of this — just tap the same connect link again. Fresh keys, re-sealed. That's the whole repair.