Cross-post from Facebook to LinkedIn
To cross-post from Facebook to LinkedIn with PubNio, send the Facebook post as written: it passes LinkedIn's checks. 8 of 11 publishing rules differ, and one request with a target for each network publishes both (provider rules read 2026-12-05).
What changes from Facebook to LinkedIn
| Rule | What to change | ||
|---|---|---|---|
| Caption limit | 63,206 | 3,000 | the 402-character draft fits with 2,598 to spare; past 3,000, set targets[1].text |
| Text | text, media, or link | required | send non-empty text, or create answers empty_content |
| Media per post | up to 10 photos or 1 video | 1 video, 1 PDF, or up to 20 images | up to 20 images, 10 before |
| Photo file PubNio accepts | JPEG, PNG; 4 MB | JPEG, PNG; 10 MB | every JPEG or PNG up to 4 MB passes |
| Media by URL | fetched | media_upload_required | send a mediaId from an upload or media.import |
| Links | settings.link, not with media | in the text | paste it into the text |
| Replies | thread replies, firstComment | thread comments, firstComment | targets[1].settings takes its own thread |
| Account | Page | account or Page | targets[1].accountId is a connected LinkedIn account or Page |
What each network states
| Rule | ||
|---|---|---|
| Caption | not stated | 3,000 characters |
| Photo formats | JPEG, BMP, PNG, GIF, TIFF | JPG, GIF, PNG (also stated: JPEG, PNG) |
| Photo size | 10 MB | not stated |
| Repeats | not stated | 10 minutes before identical content |
One request for both
POST /api/v1/posts?workspaceId=4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b
Authorization: Bearer pn_live_***
Idempotency-Key: crosspost-facebook-to-linkedin-1
Content-Type: application/json
{
"text": "Our spring workshop series is back. Every Thursday in April we open the studio for a free two-hour session on bookbinding, from folding signatures to sewing a simple pamphlet stitch. Materials are on us, and you leave with a notebook you made yourself. Seats are limited to twelve per session so everyone gets time at the bench. Message the Page to save a spot and tell us which Thursday works for you.",
"media": [
{
"mediaId": "8b2f3c4d-5e6f-4071-9283-94ab5c6d7e8f"
}
],
"publishNow": true,
"targets": [
{
"accountId": "0b6f2a14-7c3d-4e58-9a10-2f4b6c8d0e11",
"provider": "facebook",
"placement": "feed"
},
{
"accountId": "2d8f4c36-9e5f-4a7a-9c32-4b6d8e0f2a33",
"provider": "linkedin",
"placement": "feed"
}
]
}
targets[0]publishes to Facebook asfeedandtargets[1]to LinkedIn asfeed; both use the uploaded photo inmedia.- The 202 lists each target on its own: if LinkedIn fails, the Facebook post stands, and
posts.retryretries LinkedIn alone.
Sent unchanged to LinkedIn
A bare `targets[1]` still gets 202: this Facebook photo breaks no LinkedIn rule.
Limits
- PubNio does not shorten the caption or fill in settings for LinkedIn: until both targets pass, create publishes neither.
- Create checks the photo's type, size, and count, not its pixel size or aspect ratio; Facebook and LinkedIn each crop or reject on their own.
Sources
- UGC Post API (legacy), read 2026-12-05
- Graph API reference: Page Photos, read 2026-12-05
- Images API, read 2026-12-05

