Configure the OwlStack WordPress plugin to publish posts to your LinkedIn personal profile or company page.
Prerequisites
You need a LinkedIn app with the appropriate API permissions.
Getting LinkedIn API Credentials
- Go to the LinkedIn Developer Portal
- Create a new app associated with your company page
- Request access to the Share on LinkedIn and Sign In with LinkedIn products
- Generate an Access Token using OAuth 2.0
- Find your Person ID (for personal profiles) or Organization ID (for company pages)
Token Expiration
LinkedIn access tokens expire after 60 days. You'll need to refresh the token periodically. The plugin will report authentication errors when the token expires.
Settings
Navigate to OwlStack > LinkedIn in the WordPress admin.
| Field | Description |
|---|---|
| Access Token | OAuth 2.0 access token |
| Person ID | Your LinkedIn member ID (for personal profiles) |
| Organization ID | Your company page ID (for company pages) |
Person vs. Organization
Provide either a Person ID or an Organization ID, depending on whether you want to post from a personal profile or a company page. If both are provided, the Organization ID takes priority.
Step-by-step
- Go to OwlStack > LinkedIn in your WordPress admin
- Paste your Access Token
- Enter your Person ID (for personal profile) or Organization ID (for company page)
- Click Save Settings
Testing
After saving your settings:
- Click Test Connection to verify your access token
- Click Send Test Message to publish a test post
- Check your LinkedIn profile or company page to confirm the post appeared
Publishing
Once configured, LinkedIn appears as a toggle in the OwlStack meta box on post edit screens.
Programmatic publishing
// Simple LinkedIn post
owlstack()->linkedin('Hello from WordPress!');
// Post with a link
owlstack()->linkedin('Check out our latest article: https://example.com/post');Constraints
| Constraint | Value |
|---|---|
| Max text length | 3,000 characters |
| Max images per post | 20 |
| Supported media types | JPEG, PNG, GIF, MP4 |
| Max image size | 10 MB |
Troubleshooting
| Issue | Solution |
|---|---|
| "Unauthorized" error | Access token may have expired; generate a new one |
| "Forbidden" | Ensure your app has the Share on LinkedIn product approved |
| Posts on wrong profile | Check whether Person ID or Organization ID is set correctly |
| "Invalid member" | Verify the Person ID matches the token's authenticated user |