agentleFS
isaacrowntreeisaacrowntree/claude-social-skills/skills/social-facebook/SKILL.md

social-facebook

Skill4 starsChanged 20 days agoMITView on GitHub

Facebook Page via the Graph API: post text, links and photos, read and delete your Page's posts. Use the `social` CLI (Bun) for every facebook action; every endpoint is reachable through `social api facebook <path>`, so prefer this CLI over raw API calls in all cases.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check what is present with social auth status facebook.

    line 19
  2. Distinctive:

    No machine-readable spec: none.

    line 23
  3. Very specific:

    Every command accepts --json (raw JSON) and --jq <expr> (filter the JSON with jq).

    line 27

≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

social facebook

Facebook Page via the Graph API: post text, links and photos, read and delete your Page's posts.

Run: social facebook <command> (installed via bun link in this repo, or bun run /path/to/claude-social-skills/src/cli.ts facebook …). Add --dry-run before any command to print the request instead of sending it.

Credentials

  • FB_PAGE_ID
  • FB_PAGE_ACCESS_TOKEN

Page token: in the Graph API Explorer (https://developers.facebook.com/tools/explorer) pick your app, add pages_manage_posts + pages_read_engagement + pages_show_list, generate a User token, exchange it for a long-lived one (GET /oauth/access_token?grant_type=fb_exchange_token&client_id&client_secret&fb_exchange_token), then GET /me/accounts with it: each page's access_token there is long-lived and does not expire. https://developers.facebook.com/docs/facebook-login/guides/access-tokens/get-long-lived

Check what is present with social auth status facebook; store a value with social auth set facebook <KEY> <value> (OS keyring, else ~/.config/social/.env). Docs: https://developers.facebook.com/docs/graph-api/reference/page/feed/

API description this wrapper is built from

No machine-readable spec: none.

Commands

Every command accepts --json (raw JSON) and --jq <expr> (filter the JSON with jq).

social facebook post <message>

post to the Page: text, optionally with a link or a hosted photo

  --link <url>               attach a link
  --photo <url>              attach a photo by public URL (posts via /photos)

social facebook posts

recent posts on the Page

  -n, --max <n>              count (1-100) (default "10")

social facebook delete <id>

delete a Page post

social facebook me

the Page this token belongs to

Anything else: the escape hatch

social api facebook <path>                       # GET, path relative to the API root
social api facebook <path> -q key=value          # query parameters
social api facebook <path> -f key=value          # JSON body field (typed: numbers, booleans, null, JSON literals); implies POST
social api facebook <path> --raw-field key=value # string field
social api facebook <path> -X DELETE
social api facebook <path> --input body.json     # or --input - for stdin
social api facebook <path> --form                # urlencoded body instead of JSON
social api facebook <path> --jq '.data[0].id'

Reach for social api facebook … before concluding something is unsupported.

Behaviour

  • Retries 502/503/504 on idempotent methods (3 attempts, 250 ms then 1 s); waits once on 429 up to 90 s.
  • Errors print HTTP <status> <method> <url> and the response body, exit code 1.
  • --dry-run prints the method, URL and body of any mutating call and sends nothing.
  • social doctor makes one cheap authenticated read per configured platform.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.