LinkedIn Setup
Create a LinkedIn API app for profile access and content sharing through Fp Switchboard.
Prerequisites
Section titled “Prerequisites”- LinkedIn account
- Access to LinkedIn Developers
Setup Steps
Section titled “Setup Steps”-
Create LinkedIn App
Go to LinkedIn Developers and click “Create app”.
-
Configure App
- App name: Fp Switchboard
- LinkedIn Page: Associate with your company page
- App logo: Upload a logo
-
Request Products
Under the Products tab, request access to:
- Sign In with LinkedIn using OpenID Connect
- Share on LinkedIn (for posting)
-
Add Redirect URI
Under Auth > OAuth 2.0 settings, add:
https://api.switchboard.fpdigital.ai/oauth/linkedin/callback -
Copy Credentials
Copy Client ID and Primary Client Secret from the Auth tab.
Environment Variables
Section titled “Environment Variables”npx wrangler secret put LINKEDIN_CLIENT_IDnpx wrangler secret put LINKEDIN_CLIENT_SECRETRedirect URI
Section titled “Redirect URI”https://api.switchboard.fpdigital.ai/oauth/linkedin/callbackCommon Issues
Section titled “Common Issues”- “Application not approved” error: Some LinkedIn API products require manual approval. Check your app’s Products tab for status.
- Company page required: LinkedIn requires a company page to be associated with your app. Create one if needed.
- Rate limits: LinkedIn has strict rate limits (100 calls/day for some endpoints). Use sparingly.
Testing
Section titled “Testing”- Connect from the Switchboard Dashboard
- Authorize with your LinkedIn account
- Click Test Connection to verify
- Try: “Get my LinkedIn profile” or “Share a post on LinkedIn”