2.7 KiB
2.7 KiB
LinkedIn API Setup Guide
This guide provides step-by-step instructions for setting up LinkedIn API integration for the Social Media Management System.
Table of Contents
- Overview
- Prerequisites
- LinkedIn Developer Portal Setup
- Environment Configuration
- OAuth Redirect URI Configuration
- Permissions & Scopes
- Webhook Configuration (Optional)
- Development vs Production
- Troubleshooting
Overview
API Version: RestLi 2.0 (Version 202411)
Base URL: https://api.linkedin.com/rest
Auth URL: https://www.linkedin.com/oauth/v2/authorization
Token URL: https://www.linkedin.com/oauth/v2/accessToken
Features Supported
- Fetch organization posts
- Read and manage comments on organization posts
- Reply to comments as the organization
- Webhook support for real-time comment notifications
Prerequisites
- A LinkedIn account with admin access to a LinkedIn Company/Organization Page
- Access to LinkedIn Developer Portal
- HTTPS-enabled server for production (required for redirect URIs)
LinkedIn Developer Portal Setup
Step 1: Create a New App
- Navigate to LinkedIn Developer Portal
- Click "Create App"
- Fill in the required details:
- App Name: Your application name (e.g., "PX360 Social Manager")
- LinkedIn Page: Select your company/organization page
- Privacy Policy URL: Your privacy policy URL
- App Logo: Upload your app logo (required for review)
- Click "Create App"
Step 2: Request API Products
-
In your app dashboard, go to "Products" tab
-
Request access to the following products:
- Marketing API (for posts and comments management)
- Share on LinkedIn (for posting content)
- Sign In with LinkedIn (optional, for user authentication)
-
Some products require LinkedIn approval. Submit a detailed use case explaining:
"We are building a Social Media Management Tool that allows organizations to manage and respond to comments on their LinkedIn posts from a centralized dashboard. This helps community managers respond faster and maintain engagement with their audience."
Step 3: Get Credentials
- Go to "Auth" tab in your app dashboard
- Copy the following values:
- Client ID → This is your
LINKEDIN_CLIENT_ID - Client Secret → Click "Show" to reveal → This is your
LINKEDIN_CLIENT_SECRET
- Client ID → This is your