# LinkedIn (/integrations/linkedin)



{/* MANUAL-CONTENT-START:intro */}

Use [LinkedIn](https://www.linkedin.com) to publish to your personal feed and retrieve your profile information from a workflow.

{/* MANUAL-CONTENT-END */}

## OAuth scopes [#oauth-scopes]

Sim requests these scopes when someone connects a LinkedIn account. For a self-hosted deployment, register your own app with the provider using the settings below. See [Integrations and OAuth](/platform/self-hosting/integrations-oauth) for setup.

| Setting | Value |
| - | - |
| Redirect URI | `<NEXT_PUBLIC_APP_URL>/api/auth/oauth2/callback/linkedin` |
| Environment variables | `LINKEDIN_CLIENT_ID`, `LINKEDIN_CLIENT_SECRET` |

| Scope | Description |
| - | - |
| `profile` | Access profile information |
| `openid` | Standard authentication |
| `email` | Access email address |
| `w_member_social` | Post, comment, and like posts on your behalf |

## Use the block [#usage-instructions]

Share posts to your personal feed and access your LinkedIn profile information.

## Actions [#actions]

### Share Post on LinkedIn [#share-post-on-linkedin]

Share a post to your personal LinkedIn feed

#### Input [#input]

| Parameter | Type | Required | Description |
| - | - | - | - |
| `text` | string | Yes | The text content of your LinkedIn post |
| `visibility` | string | No | Who can see this post: "PUBLIC" or "CONNECTIONS" (default: "PUBLIC") |

#### Output [#output]

| Parameter | Type | Description |
| - | - | - |
| `success` | boolean | Operation success status |
| `postId` | string | Created post ID |
| `profile` | json | LinkedIn profile information |
| `error` | string | Error message if operation failed |

### Get LinkedIn Profile [#get-linkedin-profile]

Retrieve your LinkedIn profile information

#### Input [#input-1]

| Parameter | Type | Required | Description |
| - | - | - | - |

#### Output [#output-1]

| Parameter | Type | Description |
| - | - | - |
| `success` | boolean | Operation success status |
| `postId` | string | Created post ID |
| `profile` | json | LinkedIn profile information |
| `error` | string | Error message if operation failed |
