Skip to content

Facebook upload Page photo API: POST /{page-id}/photos

When PubNio calls Facebook's upload Page photo request, POST /{page-id}/photos: the scopes it needs, the errors PubNio handles for it, and its pinned spec revision.

PubNio calls Facebook’s POST /{page-id}/photos (Page.photos) to stage the photos of a Page post. Values checked 2026-12-05.

How PubNio calls it

  • Publishing: POST /api/v1/posts (unless it saves a draft), POST /api/v1/posts/{postId}/publish, or POST /api/v1/posts/{postId}/targets/{targetId}/retry starts the delivery.
  • Each photo goes up with published=false, from a stored file or a URL, and its ID is kept for the feed post or photo story that follows.
  • A stored file goes up as the multipart source part; a media link goes as url, and Meta fetches it.
  • Each photo is staged in its own step, which checks the account again before the call. A photo that cannot be staged fails the delivery as media_preparation_failed.
Value Official value Source Checked
Photo size 10 Graph API reference: Page Photos 2026-12-05
Photo formats JPEG, BMP, PNG, GIF, TIFF Graph API reference: Page Photos 2026-12-05

Scopes

  • The pinned spec names no scope. See Facebook scopes and permissions.
  • Before a delivery makes this call, PubNio checks that the account granted pages_manage_posts, pages_read_engagement, and pages_show_list.

Errors

Error pages that name this call, by what a publish write that returns the code does:

Spec and changes

Page.photos in the pinned spec, revision 5c1fa8a1653722b402133f033fcc321d67981bbd.

Refreshed by hand: no weekly change record.

Limits

  • A staged photo is not visible on the Page; when the delivery stops before the feed post, PubNio leaves it unpublished.
  • PubNio never posts part of a set: when the staged IDs do not cover every photo, the feed post is refused.

Sources

Type to search…

↑↓ navigate↵ selectEsc close