# Placement

Source: https://ampost.io/docs/placement · Full reference: https://ampost.io/llms-full.txt

### Instagram

- To post to Instagram, name `instagram` in `targets[].platforms`; its settings go in `options.instagram`.
- Text up to 2200 characters. Links: `linkUrl` ignored. Scheduling: yes.
- First comment: up to 2200 characters.
- Thread: not supported.
- Alt text (`media[].altText`): up to 1000 characters on images in feed and carousel posts.
- Media: required; image and video, up to 10 items.
- Placements: `feed`, `story`, `reel`, `carousel` (`options.instagram.placement`).
- Media sent as is within: image jpeg, ≤ 8 MB, ≤ 1440 px, 4:5 to 1.91:1; video h264/hevc, ≤ 100 MB, ≤ 1920 px, 23-60 fps, ≤ 25 Mbps, 9:16, 3-900 s; reel: video h264/hevc, ≤ 100 MB, ≤ 1920 px, 23-60 fps, ≤ 25 Mbps, 9:16, 3-900 s; story: image jpeg, ≤ 8 MB, ≤ 1920 px, 9:16; video h264/hevc, ≤ 100 MB, ≤ 1920 px, 23-60 fps, ≤ 25 Mbps, 9:16, 3-60 s.
- Options: `text`, `firstComment`, `placement`, `collaborators`, `userTags`, `coverUrl`, `thumbOffset`, `shareToFeed`.
- Instagram needs an image or a video. `options.instagram`: `collaborators` (up to 3 usernames without @; feed posts, carousels and reels, not stories; each must accept the invite before the post shows on their profile), `userTags` (`[{ "username", "x", "y", "mediaIndex" }]`: x and y from 0 to 1 from the top left are required on images and left out on reels, optional on stories; `mediaIndex` picks the carousel item, default 0; up to 20 per item), and for reels `coverUrl` (a public https JPEG) or `thumbOffset` (the cover frame in milliseconds), and `shareToFeed` (default true; false keeps the reel in the Reels tab only). An option that does not fit the placement fails with `VALIDATION_FAILED` (`details.field` names it). A username Instagram cannot tag fails the account with Instagram's error. Location tags are not supported yet.

### Facebook

- To post to Facebook, name `facebook` in `targets[].platforms`; its settings go in `options.facebook`.
- Text up to 63206 characters. Links: `linkUrl` supported. Scheduling: yes.
- First comment: up to 8000 characters.
- Thread: not supported.
- Alt text (`media[].altText`): up to 1000 characters on images in feed posts.
- Media: optional; image and video, up to 10 items, not mixed.
- Placements: `feed`, `story`, `reel` (`options.facebook.placement`).
- Pixel rules: video (reel) 9:16.
- Media sent as is within: image jpeg/png, ≤ 4 MB, ≤ 4096 px; video h264/hevc, ≤ 4096 px, 1-60 fps, ≤ 25 Mbps; story: image jpeg/png, ≤ 4 MB, ≤ 1920 px, 9:16; video h264/hevc, ≤ 1920 px, 23-60 fps, ≤ 25 Mbps, 9:16, 3-60 s; reel: video h264/hevc, ≤ 1920 px, short side ≥ 540 px, 24-60 fps, ≤ 25 Mbps, 9:16.
- Options: `text`, `firstComment`, `placement`.
- Facebook reels need one video between 4 and 60 seconds; Ampost fits it to 9:16 unless `mediaFit` is `none`.
