OC.Automate.LinkedIn
1.0.1
dotnet add package OC.Automate.LinkedIn --version 1.0.1
NuGet\Install-Package OC.Automate.LinkedIn -Version 1.0.1
<PackageReference Include="OC.Automate.LinkedIn" Version="1.0.1" />
<PackageVersion Include="OC.Automate.LinkedIn" Version="1.0.1" />
<PackageReference Include="OC.Automate.LinkedIn" />
paket add OC.Automate.LinkedIn --version 1.0.1
#r "nuget: OC.Automate.LinkedIn, 1.0.1"
#:package OC.Automate.LinkedIn@1.0.1
#addin nuget:?package=OC.Automate.LinkedIn&version=1.0.1
#tool nuget:?package=OC.Automate.LinkedIn&version=1.0.1
OC.Automate.LinkedIn
LinkedIn integration for Umbraco Automate. Post content to LinkedIn as part of your automation workflows.
Installation
dotnet add package OC.Automate.LinkedIn
Setup
Step 1: Create a LinkedIn App
- Go to https://www.linkedin.com/developers/apps and sign in.
- Click Create app.
- Fill in:
- App name: e.g. "My Umbraco Automate"
- LinkedIn Page: Select your company page (required — create one first if you don't have one)
- Logo: Upload any image
- Accept the terms and click Create app.
Step 2: Enable Required Products
On your app page, go to the Products tab and request access to:
| Product | Purpose | Approval |
|---|---|---|
| Share on LinkedIn | Required for posting as a person | Usually instant |
| Sign In with LinkedIn using OpenID Connect | Required for automatic Author URN retrieval | Usually instant |
| Community Management API | Only needed if posting as an organization | May take a few days |
Step 3: Get your Client ID and Client Secret
- On your app page, go to the Auth tab.
- Copy your Client ID and Client Secret — you'll need these for
appsettings.json.
Step 4: Configure the Redirect URL in LinkedIn
- On your app's Auth tab, scroll down to Authorized redirect URLs for your app.
- Click Add redirect URL and enter:
https://your-site.com/umbraco/api/linkedin/callback - Click Update to save.
Important: This URL must match exactly what you set in
appsettings.jsonbelow — including the protocol (https), domain, and path.
Step 5: Configure appsettings.json
Add the following to your Umbraco site's appsettings.json:
{
"OwainCodes": {
"Automate": {
"LinkedIn": {
"ClientId": "your-client-id",
"ClientSecret": "your-client-secret",
"AuthorizeRedirectUri": "https://your-site.com/umbraco/api/linkedin/callback"
}
}
}
}
| Setting | Description | Where to find it |
|---|---|---|
ClientId |
Your LinkedIn app's Client ID | App → Auth tab → Client ID |
ClientSecret |
Your LinkedIn app's Client Secret | App → Auth tab → Client Secret |
AuthorizeRedirectUri |
The callback URL for OAuth authorization | Must match the redirect URL you added in Step 4 |
Usage
Step 6: Create a LinkedIn Connection
- In the Umbraco backoffice, go to Automate and create a new LinkedIn connection.
- Enter a Connection Name (e.g.
LinkedIn). This is used internally to store your authorization tokens.
Step 7: Authorize with LinkedIn
- Click the "Authorize with LinkedIn" button in the connection settings.
- A new window opens and redirects you to LinkedIn — sign in and approve the permissions.
- After approving, you'll see a "LinkedIn Connected!" confirmation page showing your Author URN (e.g.
urn:li:person:abc123). - Your Author URN and access tokens are saved automatically. Close the window and return to the backoffice.
Step 8: Validate and Use
- Back in the Umbraco backoffice, click Validate on your LinkedIn connection to confirm it's working.
- Create an automation and add the Send LinkedIn Post action.
- Configure the post:
- Content — The text of your post. Supports
${binding}syntax for dynamic values (e.g. content name, URL). - Post URL (optional) — A URL to append to the post.
- Visibility —
PUBLIC(default) orCONNECTIONS(visible only to your connections).
- Content — The text of your post. Supports
Token Management
- Access tokens are stored in the Umbraco database and managed automatically.
- When an access token expires (~60 days), you will need to re-authorize by clicking the Authorize with LinkedIn button again.
- No manual token handling is required.
Posting as an Organization
To post as a LinkedIn Company Page instead of a personal profile:
- Ensure Community Management API is enabled on your LinkedIn app (Step 2).
- After authorizing, the package stores your personal Author URN automatically.
- To post as an organization, you'll need to update the stored URN manually via the
/umbraco/api/linkedin/meendpoint or by re-configuring the connection.
Note: Organization posting requires additional LinkedIn app approval and the account authorizing must be an admin of the LinkedIn Company Page.
| 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
- Umbraco.Automate.Core (>= 17.0.0-beta && < 19.0.0)
- Umbraco.Cms.Core (>= 17.4.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.0.1 | 76 | 6/29/2026 |
| 1.0.0 | 72 | 6/28/2026 |
| 1.0.0-beta023 | 84 | 6/25/2026 |
| 1.0.0-beta001 | 71 | 6/25/2026 |