UmbHost.Automate.LinkedIn
1.1.0-beta2
Prefix Reserved
See the version list below for details.
dotnet add package UmbHost.Automate.LinkedIn --version 1.1.0-beta2
NuGet\Install-Package UmbHost.Automate.LinkedIn -Version 1.1.0-beta2
<PackageReference Include="UmbHost.Automate.LinkedIn" Version="1.1.0-beta2" />
<PackageVersion Include="UmbHost.Automate.LinkedIn" Version="1.1.0-beta2" />
<PackageReference Include="UmbHost.Automate.LinkedIn" />
paket add UmbHost.Automate.LinkedIn --version 1.1.0-beta2
#r "nuget: UmbHost.Automate.LinkedIn, 1.1.0-beta2"
#:package UmbHost.Automate.LinkedIn@1.1.0-beta2
#addin nuget:?package=UmbHost.Automate.LinkedIn&version=1.1.0-beta2&prerelease
#tool nuget:?package=UmbHost.Automate.LinkedIn&version=1.1.0-beta2&prerelease
UmbHost.Automate.LinkedIn
LinkedIn connection (OAuth) and Create LinkedIn Company Post and Get LinkedIn Post Metrics actions for Umbraco Automate. Posts as a company page, not a personal profile.
Requires Umbraco Automate 17.4+ / 18.4+, Umbraco.Automate.OpenIddict, and Umbraco CMS 17.6+.
Setup
Create an app at linkedin.com/developers, associated with the company page.
On Products, request Community Management API (gives
w_organization_social/r_organization_social; LinkedIn reviews this, which can take days). Also add Sign In with LinkedIn using OpenID Connect, which OpenIddict's LinkedIn provider uses to identify the account.On Auth, add the redirect URL
https://<your-site>/umbraco/automate/oauth/callback/linkedin.Config:
{ "Umbraco": { "Automate": { "Providers": { "LinkedIn": { "ClientId": "...", "ClientSecret": "..." } } } } }The package adds the
w_organization_socialandr_organization_socialscopes itself. Without aClientIdthe provider is skipped and everything else still loads.Automate → Connections → Create → LinkedIn → Authorize, signed in as a member with the Administrator or Content admin role on the page.
Token lifetime
LinkedIn access tokens last 60 days, and LinkedIn only issues refresh tokens to approved partners. When the token expires, runs fail with an Authentication error asking you to re-authorise the connection.
API version
LinkedIn requires a LinkedIn-Version header (YYYYMM) and retires each version after about a year. The connection's API Version setting defaults to 202610; move it forward when LinkedIn announces a sunset.
Create LinkedIn Company Post
| Setting | Notes |
|---|---|
| Organization ID | The page's numeric id (linkedin.com/company/<id>/admin). |
| Text | #hashtags are kept. Other characters LinkedIn reserves (( ) [ ] { } < > @ * _ ~ \|) are escaped for you. |
| Link URL / Title / Description | Optional link card. LinkedIn doesn't fetch the page, so a title is required. |
| Image URL / Alt Text | Optional JPEG, PNG or GIF. A post has a link card or an image, not both. |
Output: postUrn, postUrl.
Retries
LinkedIn has no idempotency key. If the post request fails without a clear answer the step fails without retrying; check the page before re-running.
Get LinkedIn Post Metrics
Reads company page posts' lifetime share statistics with GET /rest/organizationalEntityShareStatistics (docs), under LinkedIn's own names: impressionCount, uniqueImpressionsCount, clickCount, likeCount, commentCount, shareCount and engagement.
| Setting | Notes |
|---|---|
| Organization ID | The page's numeric id, the same as on the post step. |
| Ids | JSON array of 1 to 100 post URNs (urn:li:share:… or urn:li:ugcPost:…), as Create LinkedIn Company Post outputs them. Anything else comes back gone and is never sent. |
Output: results, one per id: state (ok, gone, unavailable, needsPermission), values and reason.
Off until LinkedIn approves the app. Share statistics need the rw_organization_admin permission, and the member who authorises the connection must be an Administrator of the page. It's part of the Community Management API, which you already need for posting, but the Standard tier review asks for a screencast of each use case you request, so include Page Analytics showing post performance. Once approved, turn the metrics on:
{ "Umbraco": { "Automate": { "Providers": { "LinkedIn": { "Insights": true } } } } }
Only true (in any case, surrounding spaces ignored) turns it on; anything else, or no value, leaves it off. While it's off the action sends nothing to LinkedIn and returns every id as needsPermission with reason insights_off. Turning it on adds rw_organization_admin to the scopes the connection asks for, so re-authorise existing connections. Until you do, LinkedIn answers 403 and posts come back needsPermission with reason scope_missing.
Things to know:
- LinkedIn leaves out posts nobody has seen or acted on, and says to treat them as zero. A deleted post can't be told apart: it also comes back
okwith zeroes. - A 403 makes that call's posts
needsPermissionwith reasonscope_missing. Any other 4xx (except 401, 408 and 429) makes themunavailablewith reasonrejected, and the rest of the batch is still read. A 401 fails the step; a 408, 429, 5xx or timeout fails it and Automate retries. - Statistics are organic only and cover a rolling 12 months.
- LinkedIn's data storage terms allow keeping these figures for one year.
- Not confirmed in LinkedIn's docs:
- whether
r_organization_adminalone would be enough. The share statistics page lists onlyrw_organization_admin, so that's what the package asks for. - how many posts one call takes. The package sends at most 20 URNs per call.
- the
ugcPosts[0]=…form for UGC posts, sent with the Rest.li 2.0 header as LinkedIn's sample shows it, hasn't been run against the live API. If LinkedIn refuses it, those posts come backrejectedand share posts are unaffected. - the period of the Development tier's limits (500 requests per app, 100 per member).
- whether
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- MessagePack (>= 3.1.9)
- OpenTelemetry.Api (>= 1.15.3)
- System.Security.Cryptography.Pkcs (>= 10.0.13)
- System.Security.Cryptography.Xml (>= 10.0.13)
- Umbraco.Automate.Core (>= 17.4.0 && < 19.0.0)
- Umbraco.Automate.OpenIddict (>= 17.0.0 && < 19.0.0)
- Umbraco.Cms.Core (>= 17.6.0 && < 19.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.0-rc1 | 47 | 11/25/2026 |
| 1.1.0-beta8 | 48 | 11/24/2026 |
| 1.1.0-beta7 | 57 | 11/23/2026 |
| 1.1.0-beta6 | 55 | 11/23/2026 |
| 1.1.0-beta5 | 57 | 11/23/2026 |
| 1.1.0-beta4 | 60 | 11/18/2026 |
| 1.1.0-beta3 | 57 | 11/18/2026 |
| 1.1.0-beta2 | 63 | 11/17/2026 |
| 1.1.0-beta1 | 59 | 11/16/2026 |