# 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](https://developers.facebook.com/docs/page-stories-api/), read 2026-12-05 |
| Facebook's photo file size (MB) | 10 | "Files can not exceed 10MB." | [Graph API reference: Page Photos](https://developers.facebook.com/docs/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](https://developers.facebook.com/docs/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.

```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

- [Page Stories API](https://developers.facebook.com/docs/page-stories-api/), read 2026-12-05
- [Graph API reference: Page Photos](https://developers.facebook.com/docs/graph-api/reference/page/photos/), read 2026-12-05

## Related

- [Facebook Pages publishing API](https://pubnio.com/platforms/facebook)
- [Facebook Reels](https://pubnio.com/platforms/facebook/reels)
- [Facebook MCP server](https://pubnio.com/facebook-mcp)
- [Facebook network guide](https://pubnio.com/docs/networks/facebook/)
- [Facebook error codes](https://pubnio.com/docs/errors/facebook/)
- [Facebook rate limits](https://pubnio.com/docs/providers/facebook/limits/)
- [Facebook media specs](https://pubnio.com/docs/providers/facebook/media/)
- [Facebook OAuth scopes](https://pubnio.com/docs/providers/facebook/scopes/)
- [Facebook token lifetimes](https://pubnio.com/docs/providers/facebook/tokens/)
- [Facebook API quota](https://pubnio.com/docs/providers/facebook/quota/)
- [Facebook API versions](https://pubnio.com/docs/providers/facebook/versioning/)
- [Rules for every placement](https://pubnio.com/docs/capabilities/)
- [All platforms](https://pubnio.com/platforms)

