@xnkee/n8n-nodes-linkedin
v0.1.3
Published
n8n community node for LinkedIn — posts (text, article, single/multi image carousel) with built-in image upload pipeline (initializeUpload + dms-upload + publish in one operation).
Maintainers
Readme
@xnkee/n8n-nodes-linkedin
n8n community node for LinkedIn — posts (text, article, single/multi image carousel) with a built-in image upload pipeline that does initializeUpload + dms-upload + publish in one operation.
Installation
In your self-hosted n8n instance:
- Open Settings → Community Nodes.
- Click Install.
- Enter
@xnkee/n8n-nodes-linkedinand confirm.
Or install via npm in your n8n custom directory:
npm install @xnkee/n8n-nodes-linkedinCredentials
This node uses LinkedIn OAuth2 API (3-legged authorization code).
Default scopes: w_member_social w_organization_social r_liteprofile.
You'll need:
- Client ID and Client Secret from your LinkedIn Developer App.
- Redirect URL configured in the app, pointing to your n8n's OAuth callback.
The credential exposes a configurable LinkedIn-Version field (default 202509) so you can update the API version without rebuilding the package.
Resources & Operations
Post
- Create Text Post — text-only.
- Create Article Post — text + URL preview.
- Create Image Post — text + 1 or more images. Adds items via a collection where each item is an image URL + optional alt text. Internally:
- For each image:
POST /rest/images?action=initializeUpload→GET <imageUrl>→PUT <uploadUrl>. - Then
POST /rest/postswithcontent.media(single) orcontent.multiImage.images[](carousel). - Returns the created post URN (extracted from the
X-RestLi-Idresponse header).
- For each image:
- Get Post — fetch by URN.
- Delete Post — remove by URN.
Image
- Initialize Upload — only the first step (
initializeUpload). ReturnsuploadUrl+imageURN for advanced flows. - Upload From URL — full pipeline:
initializeUpload+ download from external URL +PUTto LinkedIn. Returns theimageURN.
Author URN
All operations require an Author URN in full form:
- Person:
urn:li:person:<id> - Organization:
urn:li:organization:<id>
Development
npm install
npm run build # tsc + copy icons
npm run dev # tsc --watch
npm run lint
npm run lintfixLicense
MIT — see LICENSE.md.
