Automate

Automate Facebook with Gemini CLI

Facebook gives you more room than every other platform here combined, and the smallest image ceiling of any of them.

One command
$ gemini mcp add --transport http antwork https://api.antwork.io/mcp

Gemini CLI adds Antwork over HTTP with one command, then authorizes with its own slash command. Two lines and you are posting from the terminal.

Connect it

  1. 01Authorize with /mcp authRun /mcp auth antwork inside the Gemini CLI. It opens an OAuth consent screen in your browser; there is no key to paste into a config file.
  2. 02Connect the social accountAsk it to connect your account and it returns a connect link per platform. Authorize once and Antwork refreshes that token for you.
  3. 03Draft, then publish as a second stepDrafting and publishing are separate tool calls. The agent writes first and only publishes when you say so, which matters more in a terminal where there is no card to review.

What you can say once Facebook is connected

Write a Facebook post about this announcement, long form, in my voice.

Take these six product photos and put them in one Facebook post scheduled for Thursday.

Rewrite my last Facebook post as something shorter and show me both.

What has performed best on Facebook over the last month?

What is different about Facebook

Only here

Room you will never fill

Facebook takes sixty three thousand characters, more than twenty times what LinkedIn allows. The agent writes to what the post needs rather than to a ceiling, because here the ceiling is not a real constraint.

The image ceiling is link-preview sized

Facebook's image ceiling is 1200 by 630, the smallest of any platform Antwork posts to. Anything larger leans on their resize, so the agent says so before it attaches rather than after it looks soft in the feed.

It takes formats nothing else will

Facebook is the only platform here that accepts .bmp, it takes .webp, and it will read nine different video containers. If you have an awkward file left over from somewhere else, this is where it goes through.

Ten images, or one video

A post can carry ten images. It cannot carry images and a video at once, so a mixed batch becomes two posts and the agent tells you which is which.

Questions

Do I need an API key to connect Gemini CLI?
No. Antwork connects over OAuth — you approve a consent screen in the browser and you are done. There is no key to generate or paste into a URL, which is how most social MCP servers handle it.
Do I need a paid account?
No. Your first two connected accounts are free forever, with unlimited posts and workspaces, and there is no plan gate on MCP access.
Will Gemini CLI post without showing me first?
Not unless you ask it to. Drafting and publishing are two separate steps: the agent writes, renders the post card, and only publishes when you confirm.
Does the writing sound like AI?
Antwork hands the agent that account's recent posts, along with how each performed, and the agent writes to match them. On Facebook that includes writing to the length the format rewards, up to 63,206 characters.

Never leave Gemini CLI to post again.

One command, one consent screen, and Facebook is something you can just ask for.

Connect your AI