Create your LinkedIn app
The agent posts through your own LinkedIn developer app. Personal posting needs no review.
- Go to linkedin.com/developers/apps and click Create app. Link it to a LinkedIn Page you admin. A small placeholder page works.
- Open the Products tab and add Sign In with LinkedIn using OpenID Connect and Share on LinkedIn.
- Open the Auth tab and add the redirect URL
http://localhost:8787/auth/linkedin/callback. On a server, use yourLA_BASE_URLfollowed by/auth/linkedin/callback. - Copy the Client ID and Client Secret into
.env:
LINKEDIN_CLIENT_ID=your-client-id
LINKEDIN_CLIENT_SECRET=your-client-secret
Restart the app, then Settings → LinkedIn → Connect LinkedIn. Access lasts about 60 days, and the app shows how many days are left.
Company Pages
Request the Community Management API product for your app. After LinkedIn approves it, set LINKEDIN_ORG_ENABLED=1, reconnect, and use Settings → LinkedIn → Load my pages.
Each workspace connects its own LinkedIn account, so one app can serve you and your clients.