Meta business posting

From AtlasOmnia/hermes-custom-pack · View interactive version

Meta business posting is an AI agent skill from the GitHub repository AtlasOmnia/hermes-custom-pack. meta-business-posting — Publish posts to a Facebook Page through the agent's own logged-in browser session or the Meta Graph API. Account-agnostic; no credentials in the skill.

How to use this skill

Skill file

Meta / Facebook Page Posting

Publish posts to a Facebook Page using the user's own account. Two paths: the

browser session (primary — works for everyone) and the Graph API

(power users with a Meta app).

Hard rules

Path 1 — Browser session (recommended)

Facebook's business surfaces are heavily JS-gated; the Hermes browser tools handle them naturally.

  1. User logs in once: navigate to facebook.com (or business.facebook.com) in the Hermes browser and have the user complete login and any 2FA themselves. The agent never sees credentials.
  2. Locate the composer: navigate to the Page (e.g. facebook.com/<page> → Create post, or Meta Business Suite → Content → Create post).
  3. Draft: compose text, optionally attach an image via the page's file input (Hermes browser set_input_files / upload control). Do not publish yet.
  4. Confirm identity: check the "Posting as" selector shows the intended Page, not the personal profile.
  5. Get approval: show the user the drafted post and the target Page; publish only on explicit approval.
  6. Publish and verify: click Publish (or have the user click it), then verify the post appears in the Page's feed and capture its permalink for the user.

Browser sessions do not persist across restarts — the user may need to log in again.

Path 2 — Graph API (power users)

Requirements (user-side setup, one-time):

Environment variables (profile .env):

META_PAGE_ID=...
META_PAGE_TOKEN=...

Publishing:

# Text/link post
curl -s -X POST "https://graph.facebook.com/v21.0/$META_PAGE_ID/feed" \
 -H "Authorization: Bearer $META_PAGE_TOKEN" \
 -d "message=<URL-encoded text>" \
 -d "link=<URL-encoded URL>"

# Photo post (upload then attach)
curl -s -X POST "https://graph.facebook.com/v21.0/$META_PAGE_ID/photos" \
 -H "Authorization: Bearer $META_PAGE_TOKEN" \
 -F "url=<public image URL or local file>" \
 -F "message=<URL-encoded text>"

The response returns an id (e.g. <page-id>_<post-id>). Verify:

curl -s -H "Authorization: Bearer $META_PAGE_TOKEN" "https://graph.facebook.com/v21.0/$POST_ID?fields=permalink_url,created_time,message"

Report the permalink_url to the user. If the response contains error (e.g. (#200) Missing permissions, (#190) token expired), report the exact error and stop — do not retry endlessly.

Workflow summary

  1. Confirm the target Page and that the user administers it.
  2. Draft the post (text, link, image) and show the user.
  3. Get explicit approval: exact text, media, Page, schedule (now vs later).
  4. Publish via browser (default) or Graph API.
  5. Verify the live post and report its permalink.

Pitfalls

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.