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
- Receive Post Request
- Set LinkedIn Settings
- Validate and Normalize Input
- Is Video?
- Has Images?
- Register Video Upload
- Download Video
- Upload Video to LinkedIn
- Create Video Post
- Split Images
- Register Image Upload
- Download Image
- Upload Image to LinkedIn
- Build Image Post
21 steps in total.
Similar automations