Facebookcoming soon

Posting to Facebook through the API

Still where a lot of local and community audiences are. The request shape is the same one every network here uses — only the limits on this page change.

Our business is verified with Meta and publishing works; Facebook still needs Meta to approve the permissions before we can post to your Page. The status page tracks it.

Connecting a Facebook account

Needs a Meta app with pages_manage_posts on a Page. Once connected, we hold the credential and keep it alive; your code only ever sends the API key.

The limits we enforce before publishing

Caption

5000 characters. Over the limit comes back as a 422 before anything publishes.

Media

Up to 10 per post. Media optional.

Video

1s to 4h 0m, up to 1.0 GB.

Cadence

6 posts a day per account — the ceiling that stays under Facebook's spam heuristics.

What pre-flight rejects, verbatim

A request that breaks a Facebook rule comes back as a 422 naming the network and the number — before anything is scheduled, not after the other networks published. The error strings are these:

  • 5132 chars — Facebook allows 5000.
  • 12 attachments — Facebook allows 10.
  • Video is 8h 0m — Facebook allows 4h 0m.

The request

curl -X POST https://attentionpilot.com/api/v1/posts \
  -H "Authorization: Bearer $PILOT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "caption": "Written for Facebook, under 5000 characters.",
    "accounts": ["facebook"]
  }'

Omit schedule for the next free queue slot, send "now" to publish immediately, or send an ISO timestamp.

When Facebook fails

Each network is delivered on its own. A revoked token or a rejected upload on Facebook never blocks your other targets: the post returns "partial", the Facebook target carries the error text, and you can retry just this delivery.

Worth knowing

  • 5,000 characters
  • Up to 10 images
  • Posts as a Page

The same call reaches the rest

Posting to Facebook is an API call.

Start free

One account free. No card.