LinkedIn Poster
by @david3xu
Use when you need to post content to LinkedIn, including text posts, image posts, and
clawhub install linkedin-posterπ About This Skill
name: linkedin description: Use when you need to post content to LinkedIn, including text posts, image posts, and #BuildInPublic updates. Handles text-only and image posting via the LinkedIn UGC API through the linkedin channel extension. Triggers on phrases like "post to LinkedIn", "share on LinkedIn", "LinkedIn update", "publish to my feed", "build in public post". homepage: https://github.com/openclaw/openclaw/tree/main/extensions/linkedin metadata: { "openclaw": { "emoji": "πΌ", "requires": { "config": ["channels.linkedin"] }, "author": "david-xu", "version": "1.0.0", "tags": ["social", "linkedin", "posting", "build-in-public"], }, }
LinkedIn Posting
Overview
Post text and images to LinkedIn via the message tool using the linkedin channel. Supports text-only posts, image posts (local files or URLs), and #BuildInPublic updates.
Prerequisites
The linkedin channel must be configured in channels.linkedin with:
accessToken: OAuth 2.0 token with w_member_social scopepersonUrn: Your LinkedIn person URN (e.g. urn:li:person:Abc123)Posting Text
Use the message tool to send a text post:
message send --channel linkedin --text "Your post content here"
The post goes to the authenticated user's LinkedIn feed as a public post.
Posting with Images
Two-step process:
1. Create the image β generate or locate the image file (PNG/JPG/GIF/WebP)
2. Post with image β use message send with the --media flag:
message send --channel linkedin --text "Post caption" --media /path/to/image.png
Supported image sources:
/Users/david/image.pngfile:// URLs: file:///Users/david/image.pnghttps://example.com/image.pngImage Upload Flow (internals)
The extension handles a 3-step LinkedIn UGC API flow automatically:
1. Register upload β gets uploadUrl + asset URN
2. PUT binary to uploadUrl
3. Create UGC post with asset reference
You don't need to manage this β just provide the image path.
Best Practices
Post Templates
#BuildInPublic Update
π [What you built today][2-3 sentences about what it does and why it matters]
Tech stack: [list]
[Screenshot or diagram]
#BuildInPublic #[topic] #[tech]
Project Milestone
β
[Milestone achieved][Brief context β what, why, how]
Key learnings:
β [Learning 1]
β [Learning 2]
β [Learning 3]
Next up: [what's coming]
#[project] #[topic]
Technical Deep-Dive
π‘ TIL: [Thing you learned][Explanation in 2-3 paragraphs]
[Code snippet or diagram if relevant]
#TIL #[topic] #[tech]
Troubleshooting
| Error | Cause | Fix |
|---|---|---|
| 401 Unauthorized | Token expired | Re-authenticate, update channels.linkedin.accessToken |
| 403 Forbidden | Missing w_member_social scope | Re-create OAuth app with correct scopes |
| Image upload 400 | File too large (>10MB) | Compress image before uploading |
| Empty postUrn | API didn't return ID | Post likely succeeded β check LinkedIn feed |
βοΈ Configuration
The linkedin channel must be configured in channels.linkedin with:
accessToken: OAuth 2.0 token with w_member_social scopepersonUrn: Your LinkedIn person URN (e.g. urn:li:person:Abc123)