Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Social Media Publishing

Social Media Publishing

Publish LinkedIn text, image, or video posts from a webhook

Receives post text with optional images or a video via webhook, uploads the media to LinkedIn, publishes the post and returns its public URL.

What it does

## Publish LinkedIn posts with images or video from one webhook How it works - A webhook receives text plus optional image_urls (1 to 20) or one video_url. - The workflow picks the route: text only, single image, multi-image post (Posts API) or native video (upload, then post). - Media is downloaded from your URLs and uploaded to LinkedIn, so nothing has to be stored first. - The response contains the public post URL, or HTTP 500 with LinkedIn's reason. Setup steps 1. Create a LinkedIn app with the *Share on LinkedIn* product and an n8n LinkedIn OAuth2 API credential (scope w_member_social). Attach it to every LinkedIn HTTP node. 2. In "Set LinkedIn Settings" enter your person ID as author_id (the sub value of GET https://api.linkedin.com/v2/userinfo). 3. POST e.g. {"text": "Hello LinkedIn", "image_urls": ["https://example.com/a.png"]} to the webhook. Good to know - The native LinkedIn node cannot post multi-image carousels or native video, hence HTTP Request. - Linkedin-Version is a monthly API version. Update it in the settings node when LinkedIn retires yours. - Text is escaped for LinkedIn's "little" format, so (, * or _ show up literally. - Protect the webhook with Header Auth before you expose it.

The steps

  1. Receive Post Request
  2. Set LinkedIn Settings
  3. Validate and Normalize Input
  4. Is Video?
  5. Has Images?
  6. Register Video Upload
  7. Download Video
  8. Upload Video to LinkedIn
  9. Create Video Post
  10. Split Images
  11. Register Image Upload
  12. Download Image
  13. Upload Image to LinkedIn
  14. Build Image Post

21 steps in total.

Similar automations