# 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 | Facebook | LinkedIn | 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 | Facebook | LinkedIn |
| --- | --- | --- |
| Caption | not stated | [3,000 characters](https://learn.microsoft.com/en-us/linkedin/marketing/community-management/shares/ugc-post-api) |
| Photo formats | [JPEG, BMP, PNG, GIF, TIFF](https://developers.facebook.com/docs/graph-api/reference/page/photos/) | [JPG, GIF, PNG (also stated: JPEG, PNG)](https://learn.microsoft.com/en-us/linkedin/marketing/community-management/shares/images-api) |
| Photo size | [10 MB](https://developers.facebook.com/docs/graph-api/reference/page/photos/) | not stated |
| Repeats | not stated | [10 minutes before identical content](https://learn.microsoft.com/en-us/linkedin/marketing/community-management/shares/ugc-post-api) |

## One request for both

```http
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 as `feed` and `targets[1]` to LinkedIn as `feed`; both use the uploaded photo in `media`.
- The 202 lists each target on its own: if LinkedIn fails, the Facebook post stands, and `posts.retry` retries 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)](https://learn.microsoft.com/en-us/linkedin/marketing/community-management/shares/ugc-post-api), read 2026-12-05
- [Graph API reference: Page Photos](https://developers.facebook.com/docs/graph-api/reference/page/photos/), read 2026-12-05
- [Images API](https://learn.microsoft.com/en-us/linkedin/marketing/community-management/shares/images-api), read 2026-12-05

## Related

- [Facebook Pages publishing API](https://pubnio.com/platforms/facebook)
- [LinkedIn publishing API](https://pubnio.com/platforms/linkedin)
- [LinkedIn media rules](https://pubnio.com/docs/providers/linkedin/media/)
- [Create a post](https://pubnio.com/docs/reference/posts-create/)
- [Retry one target](https://pubnio.com/docs/reference/posts-retry/)
- [Import media by URL](https://pubnio.com/docs/reference/media-import/)
- [Cross-posting between every pair](https://pubnio.com/cross-posting)

