Facebook · from Gemini CLI

Post to a Facebook Page from Gemini CLI.

A product Page is usually run by several people. Gemini CLI can share the setup through the project while every person keeps their own access.

Facebook from Gemini CLI almost always means a Page — the product’s, the team’s, a client’s — because Meta’s API publishes to Pages you manage and to nothing else, not personal profiles and not groups. A Page takes text on its own with room for 63,206 characters, so a release note that had to be cut down for X can go here in full, with up to 10 photos or videos from the working tree if they help.

Gemini CLI reads settings from your home directory and from a .gemini folder inside the project, so the server entry can live with the repository and every teammate gets the same tools. That entry names the server and its address and nothing else. The sign-in that makes it work is stored per person, in a token file under each user’s own home directory, so committing the project settings shares no access to anyone’s Pages.

Asking Gemini CLI for a Facebook post

The Facebook ceilings in this exchange come from the same table the publisher enforces — the conversation is drawn, the numbers are not.

Gemini CLI11:45

› Set me up — what do you need?

Just the accounts. Connect them in the browser once and I can publish from here after that.

› Done, connected

I will tell you before publishing if a network cannot take what you wrote.

› Good. Drafting the launch note now

Send it over and I will check it before anything goes out.

› post the downtime notice to our facebook page for tonight at ten, text only, i’m on london time, skip instagram

text only · one Page connected

1S

A Page takes text alone, so nothing else is needed for this one:

Facebook caption63,206fits
Image or videooptional here
Reply chainsjoined into one post
Attachments allowed10per post

Queued for ten tonight, London time, on the Page. Instagram was left out, as asked.

› _

What Facebook allows

Read from the same table the publisher enforces, so this cannot drift from what actually happens when you press send.

Caption limit
63,206 characters
Post with no image or video
Fine
Reply chains
No — the parts are joined into one post
Images or video per post
10
Image formats
Anything we accept for upload

Gemini CLI, on the other networks

Facebook, from the other agents

Publishing to Facebook from Gemini CLI

Project settings, personal access

Put the server in the project’s .gemini/settings.json for the team. Each person still runs /mcp auth and connects Pages under their own 1Social account.

Words alone are enough

A Page post needs no picture, so a text notice from Gemini CLI can go out on Facebook even when the same request is held back for Instagram.

A notice for tonight, queued now

Ask Gemini CLI for a maintenance notice at ten tonight with your timezone named, and the Page post is queued with that offset while you carry on working.

Removal works on a Page

Changed your mind? A later Gemini CLI session can delete the Page post, because Facebook supports removal through its API, which the Instagram post beside it does not.

How it works

1

Connect once

~2 min

Link the accounts you use in a browser. OAuth, no passwords typed into a chat, no API keys to paste anywhere.

ChatGPT

Claude

Cursor

2

Ask, in your own words

one sentence

Tell Gemini CLI to publish to Facebook, now or on a day you name. No dashboard, no tab switch.

3

Read the receipt

per network

One line per network — what landed, what failed and why, and what genuinely could not be determined.

The settings are shared, the sign-in is not

Because Gemini CLI reads a project’s .gemini/settings.json alongside each person’s own, a team can keep the 1Social entry in the repository and everyone sees the same server. What it does not share is the sign-in: the token lands in a file under each person’s own home directory after they run /mcp auth, tied to their own 1Social account. So “post this to the Page” from two laptops on the same branch can reach two different Pages, or none, depending on who connected what. The account list names each Page, and it is worth a glance before a notice goes out.

A rule of Facebook from Gemini CLI, not ours and not the network’s. From documentation, checked 2026-11-23.

When this is the wrong tool

If the target is your personal Facebook profile or a group, nothing can post there for you; Meta’s API covers Pages only. And there is no shared approval queue for a team: whoever runs the request publishes under their own connection, and the only check is Gemini CLI’s prompt on that one machine.

Questions people actually ask

Can I commit the Gemini CLI settings for 1Social to the repository?

Yes. The entry in the project’s .gemini/settings.json holds the server name and address only. Tokens are written to each person’s home directory when they sign in, so nobody who clones the project gets access to your Pages.

Can Gemini CLI post to a Facebook group?

No. Meta’s API publishes to Pages you manage and nowhere else, so groups and personal profiles are out of reach for Gemini CLI and for every other client. A Page post can be text alone, with photos or with video.

How does Gemini CLI choose between two Facebook Pages?

It uses the one you name. Every connected Page is listed by name when Gemini CLI reads the accounts, so naming the Page in the request, or keeping its name in your GEMINI.md, avoids a post going out under the wrong brand.

Something else? Ask us — a person answers.

Read next

Start where you already work.

Connect an account and post your first update in about two minutes. Every plan starts with a free trial.

Posts go out through each network’s official API — not scraping.