Docs
Facebook

Overview

Connect Facebook Pages, scopes, capabilities, and known limits.

Onepostly maps the Facebook Pages Graph API (Facebook Login) into the same /v1/* surface as other platforms. This section covers Facebook-only behavior.

In this section

PageTopics
PostsPublish text, photo, multi-photo, video, Stories; schedule; remote delete
CommentsList, create, delete comments
EngagementLike / unlike as the Page
InsightsAnalytics / normalized metrics

Cross-platform API flow: Media, Webhooks.

Connect

  1. Dashboard → Connections → connect Facebook
  2. Approve scopes in the Facebook Login consent screen
  3. Select one Page on the hosted picker (or via headless list/select — see Connection)
  4. That Page becomes a single connection. Connect again to add another Page.
  5. Resolve connectionId with your API key:
curl https://api.onepostly.com/v1/connections \
  -H "x-api-key: op_YOUR_KEY"

Use the matching row’s id (where platform is "facebook") as connectionId in publish requests.

You need at least one Facebook Page with a role. Personal profiles alone cannot publish via this API.

After scope upgrades, reconnect Facebook so the new scopes appear on the token.

OAuth scopes

ScopeUsed for
pages_show_listEnumerate managed Pages
pages_manage_postsPublish feed / photos / videos / stories
pages_read_engagementPost content + engagement foundation
pages_read_user_contentComments / UGC on the Page
pages_manage_engagementCreate/delete comments + like/unlike as the Page
read_insightsPost-level insights metrics

Facebook Login → Page selection. Reconnect if you see TOKEN_INVALID.

Auth errors

CodeMeaning
TOKEN_INVALID / 401Expired or invalid token → reconnect
PERMISSION_DENIED / 403Missing scope → reconnect with the required scopes

Capabilities

ActionSupportedNotes
Create postYesPOST /v1/posts
Text-onlyYes
ImageYesSingle photo
Multi-photoYes2–10 images only (no video mix)
VideoYesmediaKind: "video"
StoriesYesPhoto or video Page stories
Thread / quoteNoX / Threads features
ScheduleYesscheduledFor + timezone
Remote deleteYesDELETE /v1/posts/:id/destinations/:destinationId
InsightsYes
List commentsYesFeed / photo / video; Stories unsupported
Create / delete commentYesRequires pages_manage_engagement
Like / unlikeYesAs the Page (pages_manage_engagement)
Bookmark / retweetNo

Known limitations

  • Multi-photo posts are images only — mixing video URLs returns INVALID_MEDIA
  • Story video upload is capped at 100 MB
  • Stories are ephemeral; comments are unsupported and insights may be sparse / short-lived
  • Video publish may continue processing on Facebook after the destination is marked published
  • Distinct from Instagram Business Login — use a separate Facebook app connection

See also