@kentcdodds/linkedin
Headless helpers for LinkedIn identity, requests, and guarded posting using the saved linkedin OAuth integration.
OtherTopics: linkedin, social, oauth, profile, posting
- Version
- 1.5.0
- License
- MIT
- Published
- November 9, 2026
- Pinned commit
b3c186e- Rating
- No ratings yet
- Forks
- 0
- Adaptation effort
- —
README
Agent docs@kentcdodds/linkedin
Intent
Headless LinkedIn helpers for identity, API requests, and guarded
personal-profile posting via the saved linkedin OAuth integration. Linked
article posts should include explicit card metadata and an uploaded thumbnail,
matching LinkedIn's API requirements instead of relying on unsupported URL
scraping.
What it does
- Verify the LinkedIn OAuth integration and read member profile / person URN
- Call uncommon LinkedIn REST endpoints with saved token auth
- Dry-run or publish personal-profile text, article, image, or video posts with explicit confirmation
- Upload article thumbnails through the Images API before publishing link cards
- Delete superseded posts by share or UGC post URN with explicit confirmation
- Run the native video upload flow: register, upload parts, finalize, then post
Prerequisites / setup
- Connect the saved OAuth integration named
linkedin(storeslinkedinAccessToken/linkedinClientSecret— never paste values in chat). - Ensure
w_member_socialscope for posting helpers. - Reconnect at
/connect/oauth?provider=linkedinwhen the token expires. - Agents: see
AGENTS.mdfor import paths and smoke checks.
There is no usable public LinkedIn OpenAPI for the full REST surface. This
package uses a compact request helper that authenticates with
createAuthenticatedFetch('linkedin') and injects LinkedIn protocol headers
(LinkedIn-Version, X-Restli-Protocol-Version) for Rest.li endpoints.
Done when
- OAuth integration
linkedinis connected with posting scopes as needed - Smoke test verifies userinfo access without returning PII
- Posting/upload helpers refuse to publish unless
dryRun: trueorconfirm: true - Article posts pass explicit
title,description, and thumbnail URN orthumbnailUrl(LinkedIn does not scrape Open Graph for API posts)
Reliable video handling
Video upload and posting are now separate actions. The upload helper reads bounded provider-sized parts and records safe progress without saving private upload URLs or tokens. Repeated attempts check the same video, never silently create another. Interrupted incomplete transfers require reconciliation; fully automatic byte-resume needs protected capability storage that this release does not provision. Existing video-URN posting still works.
Report this listing
Log in to report this listing.