FoPost LogoFoPost Docs
WordPressPlatform Configuration

LinkedIn

Configure LinkedIn in the FoPost WordPress plugin.

LinkedIn

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

  1. Go to the LinkedIn Developer Portal
  2. Create a new app associated with your company page
  3. Request access to the Share on LinkedIn and Sign In with LinkedIn products
  4. Generate an Access Token using OAuth 2.0
  5. 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.

FieldDescription
Access TokenOAuth 2.0 access token
Person IDYour LinkedIn member ID (for personal profiles)
Organization IDYour 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

  1. Go to OwlStack > LinkedIn in your WordPress admin
  2. Paste your Access Token
  3. Enter your Person ID (for personal profile) or Organization ID (for company page)
  4. Click Save Settings

Testing

After saving your settings:

  1. Click Test Connection to verify your access token
  2. Click Send Test Message to publish a test post
  3. 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

ConstraintValue
Max text length3,000 characters
Max images per post20
Supported media typesJPEG, PNG, GIF, MP4
Max image size10 MB

Troubleshooting

IssueSolution
"Unauthorized" errorAccess token may have expired; generate a new one
"Forbidden"Ensure your app has the Share on LinkedIn product approved
Posts on wrong profileCheck whether Person ID or Organization ID is set correctly
"Invalid member"Verify the Person ID matches the token's authenticated user

On this page