Codex + Facebook

Post to Facebook from Codex

Ask Codex to write and schedule your Facebook posts. BrokenPost connects the two, follows Facebook's rules and posts at the time you pick.

How to connect Codex to Facebook

  1. 1

    Connect Facebook in BrokenPost. Sign in with Facebook and pick the Pages you manage.

  2. 2

    In BrokenPost, open Plugins and copy your MCP URL.

  3. 3

    Add the lines below to ~/.codex/config.toml.

  4. 4

    Run codex mcp login brokenpost and sign in.

  5. 5

    Ask Codex to schedule a post.

# ~/.codex/config.toml

[mcp_servers.brokenpost]
url = "<MCP_URL>"

Prefer another way? See every way to connect Codex.

What to ask Codex

Type these in Codex. Change the details to fit your posts.

What happens next

  1. 1

    You ask in Codex, in plain words.

  2. 2

    Codex lists the channels you connected in BrokenPost and picks your Facebook account.

  3. 3

    It reads Facebook's rules and settings from BrokenPost, so the post fits Facebook's limits before it is written.

  4. 4

    If you shared a picture, a video or a link to one, it uploads it to your media library.

  5. 5

    It creates the post as scheduled, as a draft, or to go out now, and gives you a preview link.

  6. 6

    At the set time BrokenPost publishes it to Facebook and it shows on your calendar.

Facebook limits Codex follows

Codex reads these rules from BrokenPost before it writes, so the post fits the first time.

Characters63,206 characters
MediaText only, photos, or 1 video
StoriesNeed a photo or video, each one is its own story
Video titleOptional, for video posts
AccountsFacebook Pages

Facebook settings you can ask for

Say them in plain words, like "post or story", and Codex sets them on the post.

If Facebook rejects a post

Codex sees the same message and can fix the post for you.

What you seeHow to fix it
Page publishing authorization required, please re-authenticateFacebook needs you to approve the page again. Reconnect Facebook and pick the page.
Cannot post Facebook.com linksFacebook blocks links to facebook.com in posts from apps. Remove the link or share the post on Facebook directly.
Content violates Facebook Community StandardsFacebook blocked the text or media. Change the content and try again.
Access token expired, please re-authenticateReconnect Facebook in BrokenPost. Your scheduled posts stay in place.

Good to know

Questions people ask

Can Codex post to Facebook directly?

Yes, through BrokenPost. Connect Facebook in BrokenPost, connect BrokenPost to Codex, and Codex can schedule, draft or publish Facebook posts.

Does Codex know the Facebook limits?

Yes. Codex reads Facebook's rules from BrokenPost before it writes: 63,206 characters and text only, photos, or 1 video. BrokenPost checks again before it posts.

Can Codex schedule Facebook posts for later?

Yes. Give a day and time, like "Friday at 6pm", and the post goes out then. Ask for a draft if you want to check it first.

Is it free?

Codex with BrokenPost works on every plan. The Free plan includes 1 account on every app and 20 posts a month. Paid plans start at $19 a month with unlimited posts.

Which Facebook settings can Codex set?

Post or story; Link preview URL; Colored text background; Video title.

Can Codex post a Facebook thread or comments?

Yes. Ask for a thread or a first comment and BrokenPost posts each part as a reply, right after the first one.

Can I schedule posts to a personal Facebook profile?

No. Facebook only lets apps post to Pages. Connect the Pages you manage.

Can I schedule Facebook Stories?

Yes. Set the post type to story and add a photo or video. Each one goes out as its own story.

More apps with Codex

Post to Facebook with other AI

All about scheduling Facebook posts

Write once. Post everywhere.

Start free with BrokenPost. Connect your apps and your AI in a few minutes.