← Public packages
@kentcdodds/linkedin
Headless helpers for LinkedIn identity, requests, and guarded posting using the saved linkedin OAuth integration.
- Other
- social
- oauth
- profile
- posting
- Version
- 1.1.0
- License
- MIT
- Published
- September 11, 2026
- Pinned commit
c080dee- Rating
- No ratings yet
- Forks
- 1
- 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)
Report this listing
Log in to report this listing.