> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trypost.it/llms.txt
> Use this file to discover all available pages before exploring further.

# LinkedIn

> Connect your LinkedIn profile or company pages to TryPost

# LinkedIn

TryPost supports posting to LinkedIn personal profiles and company pages.

## Connect your account

### Personal profile

1. Go to **Accounts** in the TryPost dashboard
2. Click **Connect LinkedIn**
3. Authorize TryPost on LinkedIn — your profile is connected directly, no extra picker needed

### Company page

1. Go to **Accounts** and click **Connect LinkedIn Page**
2. Authorize TryPost on LinkedIn with organization admin scope
3. TryPost loads every Page you administer and redirects you to a dedicated **Select a LinkedIn Page** screen
4. Pick the Page you want to schedule for. Each Page connects as its own social account — repeat the flow to add more.

## Supported content types

| Type         | Description                                |
| ------------ | ------------------------------------------ |
| **Post**     | Text with optional 1 image or 1 video      |
| **Carousel** | Swipeable image carousel — up to 20 images |

Both content types are available for personal profiles (`linkedin_post` / `linkedin_carousel`) and company pages (`linkedin_page_post` / `linkedin_page_carousel`).

## OAuth scopes

| Connection                     | Scopes requested                                                                                                           |
| ------------------------------ | -------------------------------------------------------------------------------------------------------------------------- |
| Personal profile (`linkedin`)  | `openid`, `profile`, `email`, `r_basicprofile`, `w_member_social`                                                          |
| Company page (`linkedin-page`) | `openid`, `profile`, `email`, `w_organization_social`, `r_organization_social`, `rw_organization_admin`, `w_member_social` |

## Self-hosting setup

<Accordion title="Configure LinkedIn API credentials">
  1. Go to [LinkedIn Developers](https://developer.linkedin.com/) and click **Create App**
  2. Fill in app details (name, company page, logo) and create the app
  3. Go to the **Auth** tab and add redirect URLs:
     * `{APP_URL}/accounts/linkedin/callback` (profiles)
     * `{APP_URL}/accounts/linkedin-page/callback` (pages)
  4. Go to the **Products** tab and request access to:
     * **Share on LinkedIn**
     * **Sign In with LinkedIn using OpenID Connect**
     * **Marketing Developer Platform** (required for company-page scopes like `w_organization_social` and `rw_organization_admin`)
  5. Add to your `.env`:

  ```env theme={null}
  LINKEDIN_CLIENT_ID=your_client_id
  LINKEDIN_CLIENT_SECRET=your_client_secret
  LINKEDIN_CLIENT_REDIRECT="${APP_URL}/accounts/linkedin/callback"
  LINKEDIN_PAGE_CLIENT_REDIRECT="${APP_URL}/accounts/linkedin-page/callback"
  ```
</Accordion>
