Claude Code + Facebook
Post to Facebook from Claude Code
Through iHatePosting, Claude Code can publish to a Facebook Page: plain text, a link with its preview, photos, a video or stories. Register iHatePosting in Claude Code with a single terminal command and a browser sign-in, then ask it for the post you want.
Setup takes about a minute. A post can hold up to 63,206 characters.
Posting to Facebook from Claude Code
Add iHatePosting to Claude Code once, connect Facebook, and then describe the post. Setup takes about a minute.
Add iHatePosting to Claude Code once
Register iHatePosting in Claude Code with a single terminal command and a browser sign-in. Then connect Facebook in iHatePosting if you have not already.
claude mcp add --transport http ihateposting https://app.ihateposting.com/mcp/oauthAsk for the Facebook post
Describe the post in plain language. Claude Code writes it, applies the settings and schedules it.
> Post the launch article link to my Facebook Page tomorrow at 10:00 with one friendly sentence.
Claude Code: Done. Scheduled on Facebook.What Claude Code can do on Facebook
On Facebook, Claude Code can publish to a Facebook Page: plain text, a link with its preview, photos, a video or stories.
Text and link posts
Post words alone, or include a link and Facebook draws its preview: picture, headline and site name.
Photos
Attach one or more pictures to a post.
Videos
Attach a video, with its own title.
Stories
Publish a story; each picture or video becomes a separate story.
Scheduling
Set the time; iHatePosting publishes at that time.
How Claude Code gets a post onto Facebook
You say what you want and Claude Code makes the calls. A typical conversation goes like this.
Find your Facebook channel
Which Facebook accounts do I have in iHatePosting?
What happens
- Claude Code lists your channels and finds Facebook
- It also reads the channel's rules and settings
Compose your content
Post the three event photos to Facebook on Saturday at noon with a short thank-you.
What happens
- Claude Code drafts the text for Facebook
- It uploads any media you mention
Schedule and publish
Yes, schedule it for tomorrow at 9:00.
What happens
- Claude Code schedules the post in iHatePosting
- iHatePosting publishes it to Facebook at that time
Facebook settings reference
Say the option in your own words and Claude Code fills in the matching field. This is every Facebook setting it can use.
| Field | Type | Required | Description |
|---|---|---|---|
| url | string | No | Link to attach as a preview card (image, title, domain), used only for text posts without media. A URL inside the content alone shows as plain text with no card |
| post_type | string | No | post or story |
| text_format_preset_id | string | No | The text format preset to apply to the post |
| title | string | No | Title of the video, used only for video (non-story) posts |
Common configurations
Each case below is a request Claude Code understands, followed by the Facebook options it sets.
A link with a preview
Add https://example.com/launch as the link preview
- Applies: url:
https://example.com/launch
A story
Post it as a story
- Applies:
post_type: story
A video with a title
Title the video Launch day
- Applies: title: Launch day
Facebook requests to try in Claude Code
A link post
Post the launch article link to my Facebook Page tomorrow at 10:00 with one friendly sentence.
A photo album
Post the three event photos to Facebook on Saturday at noon with a short thank-you.
A story
Publish promo.png as a Facebook story today at 16:00.
Facebook limits and gotchas to know
A few of Facebook's rules shape how Claude Code writes your request, so it helps to know them.
- A post can hold up to 63,206 characters.
- A post can be text only, or carry photos or a video; a story needs at least one attachment, and each file becomes its own story.
- The link preview card is only used on text posts without media; a link inside the text alone is plain text.
- A video title applies to video posts, not to stories.
- A post with a video publishes the video alone; other files in the same post are left out.
What is Claude Code?
Claude Code is Anthropic's agentic tool for software work. It lives in a terminal, with extensions for popular editors, understands the code around it, runs commands and can call MCP tools such as iHatePosting.
That makes it a natural place to announce a release: it can read the changelog, write the copy and schedule it in iHatePosting without you leaving the project.
How iHatePosting works with Claude Code
Once connected, iHatePosting hands Claude Code its tools: your channels, posts, media and each channel's settings (14 tools in all). Claude Code calls them while you describe what you want.
- iHatePosting MCP server (sign in):
claude mcp add--transport httpihatepostinghttps://app.ihateposting.com/mcp/oauth - iHatePosting plugin:
/pluginmarketplace addiHatePostingOrg/iHatePosting-Agent - iHatePosting skill (command line): npx skills add
iHatePostingOrg/iHatePosting-Agent
# iHatePosting MCP server (sign in)
claude mcp add --transport http ihateposting https://app.ihateposting.com/mcp/oauthFacebook and the other platforms Claude Code reaches
Ask for Facebook and other channels in a single message; every channel still applies its own settings.
Frequently asked questions
Start free for 30 daysRegister iHatePosting in Claude Code with a single terminal command and a browser sign-in, connect Facebook in iHatePosting, then ask Claude Code for the post in plain language. It schedules the post and iHatePosting publishes it at the time you set.
A post can hold up to 63,206 characters.
Claude Code can set url, post_type, text_format_preset_id, title. The settings reference on this page lists what each one does.
Not on the MCP route, where the browser takes care of the sign-in. The skill and plugin routes go through the command line, which signs in with ihateposting auth:login or reads IHATEPOSTING_API_KEY.