Installation
SKILL.md
Call the Facebook Graph API (graph.facebook.com) with curl + jq. The
connector injects $FACEBOOK_ACCESS_TOKEN (a Page access token with
pages_manage_posts + pages_read_engagement) and optionally
$FACEBOOK_PAGE_ID. Never echo them.
The Graph API publishes only to a Facebook Page you manage — it cannot post to a personal profile timeline.
Resolve the Page id
If $FACEBOOK_PAGE_ID is set, use it. Otherwise derive it from the token — try
the Page-token path first (/me is the Page), then fall back to the
user-token path (/me/accounts → first managed Page), so either token type
the connector accepts resolves cleanly: