# Facebook API for Pages, Reels and Stories

Publish Facebook Page posts, links, 10-photo albums, Reels and Stories through one REST API with photo first comments, comment moderation and analytics.

Meta’s Facebook Graph API splits Page feed posts, multi-photo uploads, Reels and Stories across separate endpoints with strict permission reviews and expiring Page tokens. PostSyncer unifies all Facebook Page publishing, photo first comments, replies and Page analytics under one REST API.

**REST API:** https://postsyncer.com/api/v1 · **MCP server:** https://postsyncer.com/mcp · **Docs:** https://postsyncer.com/docs/platforms/facebook

## Example Facebook request

```bash
curl -X POST "https://postsyncer.com/api/v1/posts" \
  -H "Authorization: Bearer $POSTSYNCER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workspace_id": 4815,
    "schedule_type": "schedule",
    "schedule_for": {
      "date": "2026-12-08",
      "time": "10:00",
      "timezone": "America/Los_Angeles"
    },
    "content": [
      {
        "text": "Our spring espresso menu is live across all Portland shops. Stop in for the lavender oat latte."
      },
      {
        "text": "See full seasonal menu and hours at haldencoffee.example/menu",
        "media": [
          "https://cdn.postsyncer.com/examples/latte-art.jpg"
        ],
        "is_first_comment": true,
        "first_comment_delay": 1
      }
    ],
    "accounts": [
      {
        "id": 16237,
        "settings": {
          "post_type": "POST",
          "link": "https://haldencoffee.example/menu"
        }
      }
    ]
  }'
```

```json
{
  "id": 81414,
  "status": "SCHEDULED",
  "platforms": [
    {
      "account_id": 16237,
      "platform": "facebook",
      "status": "PENDING",
      "settings": {
        "post_type": "POST",
        "link": "https://haldencoffee.example/menu"
      }
    }
  ],
  "skipped_accounts": [],
  "needs_media": []
}
```

## Quick start

1. **Connect Facebook Pages.** Authorize your Facebook Pages in PostSyncer or generate a hosted OAuth connect link via POST /accounts/connect-links for agency clients.

2. **Send feed posts, Reels or Stories.** Call POST /posts with post_type set to POST, REELS or STORIES, attach media or a link, and optionally add a first comment with text or a photo.

3. **Manage Page comments and analytics.** Read incoming Page comments, post photo or text replies, hide/unhide spam and pull impressions, clicks and reach from GET /analytics/posts/{id}.

## Facebook endpoints

- `POST /api/v1/posts` (`posts:create / schedule / publish`): Publish or schedule Facebook Page feed posts, links, 10-photo albums, Reels and Stories.

- `DELETE /api/v1/posts/{id}` (`posts:delete`): Cancel a scheduled post or delete a published Facebook Page post remotely.

- `GET /api/v1/comments` (`comments:read`): List Facebook Page comments synced on schedule, via live push or via POST /comments/sync.

- `POST /api/v1/comments` (`comments:create`): Reply to a Facebook comment as the Page, optionally attaching one photo or GIF.

- `PATCH /api/v1/comments/{id}/hide` (`comments:update`): Hide a Facebook comment or pass hidden: false to make it visible again.

- `GET /api/v1/analytics/posts/{id}` (`analytics:read`): Read impressions, likes, comments, shares, clicks and reach for a Page post.

## Facebook media and text specs

- **Feed post** (Text, link, photos or video, Up to 10 photos or 1 video): Photos and video cannot be mixed in one Facebook post. Feed videos go up to 500 MB.

- **Feed photo** (JPG, PNG, GIF, WebP, Up to 10 MB each): Up to 10 photos per feed album; links apply only when the post has no media.

- **Facebook Reel** (MP4, MOV, WebM, 1 video · 3s–90s · 100 MB): Auto re-encoded to MP4 when below 540 × 960, outside 24–60 fps or over 25 Mbps.

- **Facebook Story** (Photo or video, 1 file · 3s–60s video · 100 MB): Post text is not shown on Stories; requires one photo or one video.

- **Text & cover** (Plain text · thumbnail image, 2,200 characters): Longer text is trimmed at publish time. Set video cover via cover_image.thumbnail.

- **platform key:** facebook

- **Media required:** Only for Stories (photo or video) and Reels (video). Feed posts work with text or links alone.

- **First comment:** Supported with text plus up to 1 photo or GIF (no video), delayed by first_comment_delay minutes.

- **Deleting posts:** Supported — DELETE /posts/{id} asks Facebook to delete the live Page post.

- **Comments API:** Synced on schedule and via push (Stories excluded); reply (+1 photo/GIF), hide, unhide and delete supported.

- **Analytics metrics:** impressions, likes, comments, shares, clicks and reach.

## Facebook capabilities and settings

PostSyncer removes the friction of Meta’s split Facebook Page, Video, Reels and Stories APIs while preserving Page-specific features like link cards, photo comments and post deletion.

- **Feed posts, Reels and Stories from one schema.** Switch between Page feed updates, vertical Reels and 24-hour Stories by changing settings.post_type without touching different Meta endpoints or upload protocols.

- **Auto-transcoded Reels and Stories.** Feed videos up to 500 MB upload as they are, while Reels (3–90s) and Story videos (3–60s) are automatically re-encoded to compliant MP4 streams when source resolution, frame rate or bitrate falls outside Meta’s thresholds.

- **Photo & GIF first comments and replies.** Unlike Instagram and YouTube, Facebook supports visual engagement underneath posts. Attach one photo or GIF to a scheduled first comment or to any Page comment reply.

- **Custom video thumbnails.** Pass cover_image.thumbnail on the first content[] item (library ID or public URL) to control the preview image displayed on your Facebook Page video.

- **Full Page comment lifecycle.** Sync comments automatically or on demand, reply as the Page, hide spam with PATCH /comments/{id}/hide, restore hidden comments with hidden: false, or permanently delete comments.

- **Remote post deletion & multi-Page fan-out.** Publish different variants to multiple Facebook Pages in one POST /posts request — for instance a link post on one Page and a Reel on another — and delete live Page posts remotely when needed.

- `post_type` ("POST" | "REELS" | "STORIES"): Selects Page feed post (default), Facebook Reel (one video) or Page Story (one photo or video).

- `title` (string (cut at 2,200 chars)): Facebook-specific text overriding the shared post text.

- `link` (string (URL)): Attaches a clickable link preview card to a Facebook feed post without media.

- `media` (number[]): Overrides the shared post media with Facebook-specific media library IDs.

## Skip Meta Business verification and multi-endpoint Page uploads

Building directly on Meta’s Facebook Graph API means passing App Review for pages_manage_posts, pages_read_engagement and pages_manage_engagement, maintaining long-lived Page access tokens, and writing three separate upload implementations for feed albums, Reels resumable uploads and Story endpoints.

PostSyncer manages the Meta app approval, Page token lifecycle and upload orchestration for you. Your backend authenticates with one Bearer API key and sends identical JSON payloads whether you publish a text update, a 10-photo gallery, a 500 MB feed video, a 60-second Reel or a Page Story.

## Handling links, photo albums and needs_media draft checks

On Facebook, settings.link renders a rich link card only when the post carries no attached media. If you want both a visual asset and a prominent link, attach your photos or video to the main post and put the link — along with an optional follow-up photo or GIF — inside an is_first_comment item.

When creating Stories or Reels, PostSyncer validates media presence before scheduling or publishing. If you save a Story or Reel draft without media yet, PostSyncer saves the draft cleanly and lists the Facebook account under needs_media so your editorial workflow knows what is missing before approval.

## Page comments, privacy fallbacks and click analytics

PostSyncer checks Facebook Page posts for new comments one hour after publishing, every six hours during day one, and daily through day seven, while also ingesting live pushes from Facebook and supporting on-demand refreshes via POST /comments/sync. When Facebook withholds a commenter’s identity for privacy reasons, PostSyncer normalizes author_name to Facebook user so your UI never breaks on null strings.

Deleting a post via DELETE /posts/{id} requests remote deletion on Facebook, and GET /analytics/posts/{id} returns impressions, likes, comments, shares, clicks and reach for every Page post.

## Manage Facebook Pages through AI agents with MCP

Give ChatGPT, Claude, OpenClaw or Cursor safe access to your Facebook Pages through PostSyncer’s MCP server — draft Page posts, schedule Reels, reply to Page comments and review reach.

Related pages: [Facebook MCP](https://postsyncer.com/facebook-mcp), [Facebook scheduler](https://postsyncer.com/facebook-scheduler), [Unified social media API](https://postsyncer.com/unified-social-media-api).

## Limits and plans

| Plan | Social accounts | Posts | API posts a day, per network |
| --- | --- | --- | --- |
| Free | 2 | 20 a month | Within the 20 |
| Starter ($29 a month) | 10 | Unlimited | Unlimited |
| Pro ($49 a month) | 30 | Unlimited | Unlimited |
| Agency ($99 a month) | 100, then $1/mo each | Unlimited | Unlimited |

Every plan: 60 requests a minute for each PostSyncer user, across all their keys, the API and the MCP server together.

## FAQ

### Does the Facebook API post to Facebook Pages or personal profiles?

PostSyncer connects Facebook Pages (platform: facebook). Personal Facebook profiles are not supported by Meta’s publishing API.

### Can I publish Facebook Reels and Stories through the same endpoint?

Yes. Use POST /api/v1/posts and set accounts[].settings.post_type to POST (feed), REELS (one video, 3–90s) or STORIES (one photo or 3–60s video).

### Can a Facebook first comment or comment reply include an image?

Yes. Both first comments (is_first_comment: true) and replies via POST /api/v1/comments can include one photo or GIF on Facebook.

### Does deleting a post in PostSyncer delete it from my Facebook Page?

Yes. Calling DELETE /api/v1/posts/{id} asks Facebook to delete the published Page post as well as removing it from PostSyncer.

### Can I hide and unhide Facebook comments via the API?

Yes. Call PATCH /api/v1/comments/{id}/hide with hidden: true to hide a comment or hidden: false to show it again. Comments on Stories are not read.

### What Facebook analytics metrics are available?

GET /api/v1/analytics/posts/{id} returns impressions, likes, comments, shares, clicks and reach for Facebook Page posts.

---

Page: https://postsyncer.com/facebook-api · Updated 2026-11-27
