NetworksFacebook

Facebook APIthrough Siar.

Posts, reels and stories on Facebook Pages, including link posts and Page recommendations.

At a glance

Account needed: A Facebook Page you manage. Personal profiles cannot be published to through the API.

ConnectionOAuth 2.0 in the browser
ChannelRequired: pick a channel after connecting
Post typespost, reel, story
Text length63,206 characters
Comment length8,000 characters
Media per postUp to 10

Media rules

KindFormatsMax sizeDurationOther
Imagejpeg, png, gif, bmp, tiff, webp10 MBn/aNone
Videomp4, mov1 GBUp to 20 minNone

What Siar can do on Facebook

Comments and repliesYes
First commentYes
Edit a published postYes
Delete a published postYes
Edit a commentYes
Delete a commentYes
Import commentsYes
Post analyticsYes
Account analyticsYes
Post history importYes
Direct messagesYes

Siar can create comments and replies up to 8,000 characters, and import the comments people leave on your posts.

Publish a post

Put Facebook's payload under data.FACEBOOK and list FACEBOOK in socialAccountTypes. Add other networks to the same request to post to all of them at once.

curl -X POST "https://api.siaran.my/api/v1/post" \
  -H "x-api-key: $SIAR_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "teamId": "TEAM_ID",
    "title": "Facebook post",
    "postDate": "2026-11-02T09:00:00.000Z",
    "status": "SCHEDULED",
    "socialAccountTypes": [
      "FACEBOOK"
    ],
    "data": {
      "FACEBOOK": {
        "type": "POST",
        "text": "Hello from Siar",
        "uploadIds": [
          "UPLOAD_ID"
        ]
      }
    }
  }'

Facebook fields

  • type string default "POST"
    One of: POST REEL STORY
  • text string nullable
  • uploadIds string[] nullable
  • mediaItems object[] nullable
    2 fields
    • uploadId string required
    • altText string nullable
  • link string nullable
  • thumbnail string nullable
  • mediaTitle string nullable
  • nativeScheduleTime string nullable date-time
  • textFormatPresetId string nullable

Daily caps

Per connected account, per UTC dayFreeProBusiness
Posts1050100
Comments350100

See pricing for monthly quotas. Enterprise uses the Business caps unless agreed otherwise.

Connecting a Facebook account

Siar sends the user to the network's consent page and stores the tokens it gets back, refreshing them before they expire. Use POST /social-account/connect from your own UI, or send your customer a hosted link from POST /social-account/create-portal-link; see connecting accounts.

Permissions requested

Siar requests only these scopes at connect time:

  • public_profile
  • pages_show_list
  • pages_read_engagement
  • pages_read_user_content
  • pages_manage_posts
  • pages_manage_engagement
  • pages_manage_metadata
  • read_insights
  • business_management
  • pages_messaging

Facebook-specific operations

These exist for Facebook only and live under /misc/facebook.

OperationEndpoint
Search Facebook PagesGET /misc/facebook/pages
List Facebook text background presetsGET /misc/facebook/text-format-presets
Get Facebook token debug detailsGET /misc/facebook/token-debug
Start a new Facebook recommendations importPOST /misc/facebook/recommendations/import
Get Facebook recommendations import status listGET /misc/facebook/recommendations/import
Get Facebook recommendations import by IDGET /misc/facebook/recommendations/import/{importId}
List imported Facebook recommendationsGET /misc/facebook/recommendations
Get a single imported Facebook recommendationGET /misc/facebook/recommendations/{recommendationId}
Get recommendation thread commentsGET /misc/facebook/recommendations/{recommendationId}/comments
Reply to a Facebook recommendationPUT /misc/facebook/recommendations/{recommendationId}/reply
Reply to a Facebook recommendation thread commentPUT /misc/facebook/recommendations/{recommendationId}/comments/{commentId}/reply
Edit an existing Facebook postPATCH /misc/facebook/post
Delete a Facebook postDELETE /misc/facebook/post
Edit a Facebook commentPATCH /misc/facebook/comment
Delete a Facebook commentDELETE /misc/facebook/comment

When Facebook says no

Siar relays Facebook's error code and message verbatim on the post, next to a status you can act on. The Facebook error reference covers 12 common cases with what each one means and the fix. Open the Facebook error reference.

Facebook API questions

What can I post to Facebook through the API?

post, reel, story. Posts, reels and stories on Facebook Pages, including link posts and Page recommendations.

How many Facebook posts can I publish per day?

Per connected account and UTC day: 10 on Free, 50 on Pro, 100 on Business. The caps keep the account within what Facebook tolerates.

Can I schedule Facebook posts?

Yes. Set postDate in the future and a status of SCHEDULED. Siar publishes at that time and sends a post.published webhook when the post reaches a final state.

How do I connect a Facebook account?

A Facebook Page you manage. Personal profiles cannot be published to through the API. Siar sends the user to the network's consent page and stores the tokens it gets back, refreshing them before they expire.

What do I do when Facebook rejects a post?

The post carries Facebook's own code and message. The Facebook error reference explains 12 common rejections and how to fix them.

Your first post isone request away.

The Free plan includes 20 posts and 200 uploads a month across 3 teams. No card needed.