Facebook Stories publishing API
A Facebook Story is one photo or one video on a Page, sent with placement: "story". The AI label applies to video Stories only. Facebook's rules below were read 2026-12-05.
Rules for Facebook Stories
| Rule | Value |
|---|---|
| Placement | story |
| Media | image, video |
| Items per post | 1 |
| Caption limit | 63,206 characters |
- A Story is one photo or one video; a second item fails with
media_count. - PubNio checks a workspace photo itself: JPEG or PNG, up to 4 MB. A GIF from workspace media fails with
media_mime_type; import a GIF URL first so validation can check it. - PubNio's capability catalog, which agents read before they post, does not state the one-item limit for Stories yet. Publish validation enforces it: a second item fails with
media_count.
| Fact | Value | Their words | Source |
|---|---|---|---|
| Media per Story | One photo or one video per Story | "`video_id` set to the ID for your uploaded video" | Page Stories API, read 2026-12-05 |
| Facebook's photo file size (MB) | 10 | "Files can not exceed 10MB." | Graph API reference: Page Photos, read 2026-12-05 |
| Facebook's photo formats | JPEG, BMP, PNG, GIF, TIFF | ".jpeg, .bmp, .png, .gif, .tiff" | Graph API reference: Page Photos, read 2026-12-05 |
Settings
Set these under the target's settings. All are optional unless marked required.
| Field | What it does |
|---|---|
isAiGenerated | Label a video Story as AI-generated. |
Publish request
One video Story labelled as AI-generated.
POST /api/v1/posts?workspaceId=4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b
Authorization: Bearer pn_live_***
Idempotency-Key: facebook-story-preview
Content-Type: application/json
{
"publishNow": true,
"targets": [
{
"accountId": "7f3c2a10-5b4e-4d6f-8a9b-0c1d2e3f4a5b",
"provider": "facebook",
"placement": "story",
"settings": {
"isAiGenerated": true
},
"media": [
{
"url": "https://cdn.example.com/preview.mp4"
}
]
}
]
}
Limits
- A Story takes no
firstComment,thread, orcountries; its one setting isisAiGenerated.
Sources
- Page Stories API, read 2026-12-05
- Graph API reference: Page Photos, read 2026-12-05

