Post to Facebook with Gemini CLI

Connect Gemini CLI to dopost to post to your Facebook account and manage your calendar.

Connect Gemini CLI to dopost

Set up the connection

Recommended

Add the hosted server and authenticate with /mcp auth

Sign in to dopost to connect your accounts. No API key is needed.

.gemini/settings.json
{
  "mcpServers": {
    "dopost": { "httpUrl": "https://mcp.dopost.co/mcp" }
  }
}
  1. 1Add dopost under mcpServers in .gemini/settings.json.
  2. 2Start Gemini CLI and run /mcp auth dopost to sign in.
  3. 3Ask Gemini to list your connected accounts.
Full Gemini CLI guide

Requirements for posting to Facebook

  • A Facebook Page where you can create content
  • Posts go to Facebook Pages, not personal profiles.
  • Gemini CLI publishes feed posts. Reels and Stories are scheduled from the dopost app.
  • Up to 10 photos per post.
  • Long texts are fine: the limit is 63,206 characters.
dopost Facebook scheduler

Facebook formats

Check the formats and media supported by this connection.

FormatMedia per postMedia requiredWith Gemini CLI
Feed post10No
Reel1Yes
Story1Yes

What you can ask Gemini CLI

Schedule a post

Schedule this post on Facebook for tomorrow at 10am.

Check the calendar

What posts do I have scheduled on Facebook for next week?

Reschedule posts

Move Friday’s Facebook posts to Monday, keeping the same times.

Facebook performance

Check the available metrics for your posts.

Compare the performance of my Facebook posts this month.

Facebook with other agents

Gemini CLI and Facebook questions

Can Gemini CLI post to Facebook?

Yes. Connect your Facebook account in dopost and follow the Gemini CLI setup guide.

Can Gemini CLI post to my personal Facebook profile?

No. Facebook only allows publishing to Pages through its API. Connect your Page in dopost and Gemini CLI can post there.

Can Gemini CLI post Facebook Reels or Stories?

Not yet. Gemini CLI publishes feed posts with text, photos or a video. Reels and Stories can be scheduled from the dopost app.

Can I check my Facebook results?

Yes. You can check the available metrics for your Facebook accounts and posts.

Can I review content before scheduling?

You can ask the agent to show you the content before scheduling it.

Start posting to Facebook with Gemini CLI

Create your dopost account and connect your social accounts.

See plans and pricing