# Media requirements

Image and video requirements for Facebook posts, custom video thumbnails, and the rules for media URLs.

Facebook rejects images above 4 MB and videos above 4 GB. Zernio converts WebP images to JPEG before upload.

## Images

| Property | Feed post | Story |
|----------|-----------|-------|
| Max images | 10 | 1 |
| Formats | JPEG, PNG, GIF (WebP converted) | JPEG, PNG |
| Max file size | 4 MB | 4 MB |
| Recommended | 1200 x 630 px | 1080 x 1920 px |

## Videos

| Property | Feed video | Reel | Story |
|----------|------------|------|-------|
| Max videos | 1 | 1 | 1 |
| Formats | MP4, MOV | MP4, MOV | MP4, MOV |
| Max file size | 4 GB | 4 GB | 4 GB |
| Max duration | 240 minutes | 60 seconds | 120 seconds |
| Min duration | 1 second | 3 seconds | 1 second |
| Recommended resolution | 1280 x 720 px minimum | 9:16 vertical, required | 1080 x 1920 px |
| Frame rate | 30 fps recommended | 30 fps recommended | 30 fps |
| Codec | H.264 | H.264 | H.264 |

## Custom thumbnails

Set `thumbnail` on the video media item to replace Facebook's automatic cover. It works on feed videos and Reels, not Stories.

```json
"mediaItems": [
  {
    "type": "video",
    "url": "https://cdn.example.com/launch.mp4",
    "thumbnail": "https://cdn.example.com/launch-cover.jpg"
  }
]
```

The URL must return an image (an `image/*` `Content-Type`) of 10 MB or less.

The thumbnail is best-effort. When it cannot be fetched or Facebook refuses it, the video still publishes with Facebook's automatic cover and no warning is returned.

To change the cover after publishing, call [update post metadata](/posts/update-post-metadata) with `platform: "facebook"` and `thumbnailUrl` (JPEG or PNG, 5 MB or less).

- It works on feed videos and Reels published through Zernio, not Stories.
- Unlike the publish-time thumbnail, it returns an error when Facebook refuses the image.
- A `503` means Facebook is still processing the video, so retry a few minutes later.

## Media URLs

A media URL must be publicly accessible over HTTPS with no authentication and no redirects.

Cloud storage sharing links (Dropbox, OneDrive) may not work. Use a direct download URL or upload through the [media endpoint](/guides/media-uploads). [Google Drive links](/guides/media-uploads#google-drive-links) work when the file is shared with "Anyone with the link".