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.

Live · platform rules read 2026-12-05View as Markdown

Rules for Facebook Stories

RuleValue
Placementstory
Mediaimage, video
Items per post1
Caption limit63,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.
FactValueTheir wordsSource
Media per StoryOne 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 formatsJPEG, 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.

FieldWhat it does
isAiGeneratedLabel a video Story as AI-generated.

Publish request

One video Story labelled as AI-generated.

facebook-stories-request.http
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, or countries; its one setting is isAiGenerated.

Sources