The LinkedIn module lets your AI agent publish posts to your LinkedIn profile or company page. AgentGrow uses OAuth 2.0 to connect securely — you create a LinkedIn App, enter its credentials, and click a button. The platform handles token exchange, encrypted storage, and automatic daily refresh so your connection never expires silently.

How It Works

Instead of manually generating and pasting access tokens (which expire every 60 days), AgentGrow’s OAuth flow works in three steps:

  1. You create a LinkedIn App and paste the Client ID + Client Secret into AgentGrow
  2. You click "Connect LinkedIn" — you are redirected to LinkedIn to authorize
  3. AgentGrow stores the tokens and refreshes them automatically before they expire
Posts will appear as your identity (your LinkedIn profile or company page), not AgentGrow’s. You own the LinkedIn App and control exactly what permissions are granted.

What You Will Need

FieldWhat it is
Client IDYour LinkedIn App’s public identifier (found in the app settings)
Client SecretYour LinkedIn App’s secret key (shown once when generated)
Page URL(Optional) Your LinkedIn company page URL, so your agent knows where to post

Prerequisites


Part 1 — Create a LinkedIn App

1

Go to LinkedIn Developers

Open linkedin.com/developers/apps and sign in with your LinkedIn account.

2

Create a new app

Click Create app and fill in:

3

Request the required products

After creating the app, go to the Products tab and request access to the products you need. Each product unlocks specific OAuth scopes:

LinkedIn ProductScopes GrantedUse Case
Community Management APIw_organization_social, r_organization_socialPost on your company page
Share on LinkedInw_member_socialPost on your personal profile
Sign In with LinkedIn using OpenID Connectopenid, profile, emailDisplay your name/avatar in AgentGrow (optional)

To post on a company page (most common), you only need Community Management API. "Share on LinkedIn" is needed only if you also want to post on your personal profile.

Product approvals are usually instant. Some may take a few minutes.

Important: Only request products you actually need. In Step 2 below, you will select the matching OAuth scopes in AgentGrow. If you select a scope whose product is not enabled, LinkedIn will reject the connection with a "Scope not authorized" error.
4

Set the OAuth redirect URI

Go to the Auth tab in your LinkedIn App settings. Under OAuth 2.0 settings, add this redirect URL:

https://agentgrow.io/api/linkedin/callback

Click Update to save. This is where LinkedIn sends you back after authorization.

5

Copy Client ID and Client Secret

Still on the Auth tab:

Keep the Client Secret safe. Anyone with your Client ID + Secret can request tokens on behalf of your app. Do not share them publicly.

Part 2 — Connect LinkedIn in AgentGrow

1

Open your Integrations page

Log in to your AgentGrow dashboard at agentgrow.io/user/integrations.

2

Configure LinkedIn

Find the LinkedIn module and click Configure. You will see a two-step form:

Step 1 — App Credentials & Scopes:

Match your scopes to your products. If you only enabled "Community Management API" for company page posting, select only w_organization_social and r_organization_social. Selecting scopes for products you have not enabled will cause a "Scope not authorized" error.

Click Save & Continue.

Step 2 — Authorize:

3

Verify the connection

After authorization, you will see a green Connected status with your LinkedIn name and profile photo. The token expiry date is displayed — AgentGrow refreshes it automatically before it expires.

That’s it! Your agent will begin posting to LinkedIn on its next scheduled run. Check your Dashboard for activity updates.

Troubleshooting

"Scope not authorized for your application"

This means you selected an OAuth scope in AgentGrow that your LinkedIn App does not have access to. To fix:

  1. Go to your LinkedIn App → Products tab and note which products show "Added"
  2. In AgentGrow, click Change credentials & scopes on the LinkedIn module
  3. Uncheck any scopes whose product is not enabled (see the table in Part 1, Step 3 above)
  4. Click Save & Continue, then Connect LinkedIn again

For example, if you only have "Community Management API" enabled, select only w_organization_social and r_organization_social.

LinkedIn says "invalid redirect URI"

Make sure you added this exact URL in your LinkedIn App’s Auth settings:

https://agentgrow.io/api/linkedin/callback

The URL must match exactly — no trailing slash, no http:// (must be https://).

"Share on LinkedIn" product not approved

Go to your LinkedIn App → Products tab and check that "Share on LinkedIn" shows "Added". If it says "Review in progress", wait for approval before trying to connect. Most approvals are instant.

Connection shows "Expired"

AgentGrow automatically refreshes tokens daily. If you still see "Expired":

This generates a fresh token immediately.

Agent posts are not appearing on LinkedIn

How do I disconnect LinkedIn?

Open the LinkedIn module on the Integrations page, click Reconfigure, then click Disconnect. This removes the access token but keeps your app credentials so you can reconnect without re-entering them.

Can I switch to a different LinkedIn account?

Yes. Disconnect the current connection, then click Connect LinkedIn again. When LinkedIn asks you to authorize, sign in with the different account.