Facebook API Reference

Post to Facebook Pages with text, images, video, carousels, and GIFs.

Quick reference

authOAuth 2.0 (Meta)
text Limit63,206 characters
max Media10 items (carousel)
media RuleText-only posts are allowed
max Video Duration4 hours
entity SelectionFacebook Pages
first CommentSupported — no fixed limit

Content types

Text

Up to 63,206 characters

Images

JPEG, PNG, GIF, WebP. Max 4 MB.

Video

MP4 or MOV. Max 4 GB.

Carousel

Up to 10 items

GIF

Animated GIFs supported natively

Media requirements

Constraints enforced by Facebook's API. Requests that violate these limits will be rejected.

ConstraintValue
Max image size4 MB
Max video size4 GB
Image formatsJPEG, PNG, GIF, WEBP
Video formatsMP4, QUICKTIME
Max video duration4 hours
Min image dimensions100x100 px
Max media items10
GIF supportYes

Platform settings

Pass these fields inside platformSettings.facebook in the request body.

postType
stringOptional

Type of Facebook post.

Default: post

poststoryreelcarousel

Code examples

Basic post

curl -X POST https://schedulala.com/api/v1/posts \
-H "Authorization: Bearer sk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "Exciting news from our team!",
"platforms": [
{ "platform": "facebook", "accountId": "acc_789" }
],
"publishNow": true
}'

Post with media

curl -X POST https://schedulala.com/api/v1/posts \
-H "Authorization: Bearer sk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "New product launch!",
"platforms": [
{ "platform": "facebook", "accountId": "acc_789" }
],
"mediaItems": [
{ "type": "image", "url": "https://example.com/product.jpg" }
],
"publishNow": true
}'

Quirks & gotchas

!

Posts go to a Facebook Page, not a personal profile — you must select a Page after connecting.

!

Entity selection required: call GET /api/v1/connect/facebook/entities to list pages.

!

Video max: 4 GB. Image max: 4 MB.

!

Minimum image dimensions: 100x100 px.

!

One of the most generous text limits at 63,206 characters.

Related