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).

Both networks Live · platform rules read 2026-12-05View as Markdown

What changes from Facebook to LinkedIn

RuleFacebookLinkedInWhat to change
Caption limit63,2063,000the 402-character draft fits with 2,598 to spare; past 3,000, set targets[1].text
Texttext, media, or linkrequiredsend non-empty text, or create answers empty_content
Media per postup to 10 photos or 1 video1 video, 1 PDF, or up to 20 imagesup to 20 images, 10 before
Photo file PubNio acceptsJPEG, PNG; 4 MBJPEG, PNG; 10 MBevery JPEG or PNG up to 4 MB passes
Media by URLfetchedmedia_upload_requiredsend a mediaId from an upload or media.import
Linkssettings.link, not with mediain the textpaste it into the text
Repliesthread replies, firstCommentthread comments, firstCommenttargets[1].settings takes its own thread
AccountPageaccount or Pagetargets[1].accountId is a connected LinkedIn account or Page

What each network states

RuleFacebookLinkedIn
Captionnot stated3,000 characters
Photo formatsJPEG, BMP, PNG, GIF, TIFFJPG, GIF, PNG (also stated: JPEG, PNG)
Photo size10 MBnot stated
Repeatsnot stated10 minutes before identical content

One request for both

facebook-and-linkedin.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