LinkedIn is a professional networking platform that enables users to connect with colleagues, discover job opportunities, and share industry-related content.
Categories: Communication, Social Media
Type: linkedin/v1
Connections
Version: 1
OAuth2 Authorization Code
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| clientId | Client Id | STRING | true | |
| clientSecret | Client Secret | STRING | true |
Connection Setup
To integrate LinkedIn with ByteChef, you will need a LinkedIn account and access to a LinkedIn Company Page.
- Go to the
https://www.linkedin.com/developers. - Click on My apps.
- Click on Create app.
- Fill in the required fields:
- App name: Enter a name for your application (e.g.,
bytechef integration). - LinkedIn Page: Enter a LinkedIn Company Page or use the Create a new LinkedIn Page link to create one on-the-fly.
- App logo: Upload an image for your application.
- Legal agreement: Check the box to agree to the Legal agreement.
- App name: Enter a name for your application (e.g.,
- Click on Create app.
- This should open the Products tab. Select the products/APIs you want to enable for your app.
- Request access for the Share on LinkedIn
- Request access for the Sign In with LinkedIn using OpenID Connect
- Go to the Auth tab.
- Specify the URL where users will be redirected after authorization (e.g.,
https://app.bytechef.io/callback) - Copy the Client ID and Client Secret for later use.
To post as an organization, you need to verify your app as being associated with this company.
- Go to the Settings tab.
- Click Verify.
- Click Generate URL.
- Copy URL and send it to a Company Page admin for verfication.
- Once verification is complete, return to the Products tab and enable the Advertising API to allow posting as an organization.
Actions
Create Post
Name: createPost
Create a post on LinkedIn.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| author | Post As | STRING OptionsPERSON, ORGANIZATION | Choose whether to post as a Person or Organization. | true |
| urn | Organization Number | STRING | Enter the organization number in the URN field. For example, 03262013 not urn:li:company:03262013. | true |
| commentary | Text | STRING | The user generated commentary for the post. | true |
| contentType | Media Category | STRING OptionsARTICLE, DOCUMENT, IMAGES | Type of media to be posted. | false |
| visibility | Visibility | STRING OptionsPUBLIC, CONNECTIONS | Visibility restrictions on content. | true |
| images | Images | ARRAY Items[FILE_ENTRY($image)] | Images to be posted. | true |
| source | Article URL | STRING | A URL of the article. Typically the URL that was ingested to maintain URL parameters. | true |
| title | Article Title | STRING | Custom or saved title of the article. | false |
| description | Article Description | STRING | Custom or saved description of the article. | false |
| thumbnail | Article Thumbnail | FILE_ENTRY | The thumbnail image to be associated with the article. | false |
| document | Document | FILE_ENTRY | The document to be posted. | true |
| title | Document Title | STRING | The title of the document. | true |
Example JSON Structure
{
"label" : "Create Post",
"name" : "createPost",
"parameters" : {
"author" : "",
"urn" : "",
"commentary" : "",
"contentType" : "",
"visibility" : "",
"images" : [ {
"extension" : "",
"mimeType" : "",
"name" : "",
"url" : ""
} ],
"source" : "",
"title" : "",
"description" : "",
"thumbnail" : {
"extension" : "",
"mimeType" : "",
"name" : "",
"url" : ""
},
"document" : {
"extension" : "",
"mimeType" : "",
"name" : "",
"url" : ""
}
},
"type" : "linkedin/v1/createPost"
}Output
Type: STRING
Find Organization Number
To find the Organization Number, click here.
Delete Post
Name: deletePost
Delete a post from LinkedIn.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| urn | URN | STRING | ugcPostUrn | shareUrn |
Example JSON Structure
{
"label" : "Delete Post",
"name" : "deletePost",
"parameters" : {
"urn" : ""
},
"type" : "linkedin/v1/deletePost"
}Output
This action does not produce any output.
Get Comments
Name: getComments
Get the comments on an organization post, or the replies to a comment when a comment URN is given.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| urn | URN | STRING | URN of the post (urn:li:share:{id} or urn:li:ugcPost:{id}) to get the comments of, or URN of the comment (urn:li:comment:({activityUrn},{commentId})) to get the replies to. | true |
| start | Start | INTEGER | Index of the first comment to return. | false |
| count | Count | INTEGER | Number of comments to return. | false |
Example JSON Structure
{
"label" : "Get Comments",
"name" : "getComments",
"parameters" : {
"urn" : "",
"start" : 1,
"count" : 1
},
"type" : "linkedin/v1/getComments"
}Output
Type: ARRAY
Items Type: OBJECT
Properties
| Name | Type | Description |
|---|---|---|
| actor | STRING | URN of the person or organization that created the comment. |
| commentUrn | STRING | URN of the comment. |
| id | STRING | ID of the comment. |
| message | OBJECT Properties{STRING(text)} | The message of the comment. |
| created | OBJECT Properties{STRING(actor), INTEGER(time)} | The time and the actor that created the comment. |
| lastModified | OBJECT Properties{STRING(actor), INTEGER(time)} | The time and the actor that last modified the comment. |
| object | STRING | URN of the activity, post or comment the comment was made on. |
| parentComment | STRING | URN of the parent comment when the comment is a reply. |
| content | ARRAY Items[{STRING(type), STRING(url)}] | Media attached to the comment. |
Output Example
[ {
"actor" : "",
"commentUrn" : "",
"id" : "",
"message" : {
"text" : ""
},
"created" : {
"actor" : "",
"time" : 1
},
"lastModified" : {
"actor" : "",
"time" : 1
},
"object" : "",
"parentComment" : "",
"content" : [ {
"type" : "",
"url" : ""
} ]
} ]Triggers
New Comment
Name: newComment
Triggers when a new comment is added to one of the recent posts of a specific organization.
Type: POLLING
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| urn | Organization Number | STRING | Number of the organization whose recent posts are monitored for new comments. | true |
Output
Type: OBJECT
Properties
| Name | Type | Description |
|---|---|---|
| actor | STRING | URN of the person or organization that created the comment. |
| commentUrn | STRING | URN of the comment. |
| id | STRING | ID of the comment. |
| message | OBJECT Properties{STRING(text)} | The message of the comment. |
| created | OBJECT Properties{STRING(actor), INTEGER(time)} | The time and the actor that created the comment. |
| lastModified | OBJECT Properties{STRING(actor), INTEGER(time)} | The time and the actor that last modified the comment. |
| object | STRING | URN of the activity, post or comment the comment was made on. |
| parentComment | STRING | URN of the parent comment when the comment is a reply. |
| content | ARRAY Items[{STRING(type), STRING(url)}] | Media attached to the comment. |
JSON Example
{
"label" : "New Comment",
"name" : "newComment",
"parameters" : {
"urn" : ""
},
"type" : "linkedin/v1/newComment"
}New Post
Name: newPost
Triggers when a new post is created in a specific organization.
Type: POLLING
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| urn | Organization Number | STRING | Number of the organization to monitor for new posts. | true |
Output
Type: ARRAY
Items Type: OBJECT
Properties
| Name | Type | Description |
|---|---|---|
| isReshareDisabledByAuthor | BOOLEAN Optionstrue, false | Indicates whether resharing of the post has been disabled by the author. |
| createdAt | INTEGER | Time at which the resource was created in milliseconds since epoch. |
| lifecycleState | STRING | The state of the content. |
| lastModifiedAt | INTEGER | Time at which the resource was last modified in milliseconds since epoch. |
| visibility | STRING | Visibility restrictions on content. |
| publishedAt | INTEGER | The time at which the content was published represented in epoch time. |
| author | STRING | URN of the author of the content. |
| id | STRING | Unique ID for the object. |
| distribution | OBJECT Properties{STRING(feedDistribution), [STRING](thirdPartyDistributionChannels)} | Distribution of the post both in LinkedIn and externally. |
| content | OBJECT Properties{{STRING(description), STRING(thumbnail), STRING(source), STRING(title)}(article), {STRING(id), STRING(title), STRING(altText)}(media), {[{STRING(id), STRING(title), STRING(altText)}](images), STRING(altText)}(multiImage)} | The posted content. |
| commentary | STRING | The user generated commentary for the post. |
| lifecycleStateInfo | OBJECT Properties{BOOLEAN(isEditedByAuthor)} | Additional information about the lifecycle state for PUBLISH_REQUESTED or PUBLISH_FAILED. |
JSON Example
{
"label" : "New Post",
"name" : "newPost",
"parameters" : {
"urn" : ""
},
"type" : "linkedin/v1/newPost"
}Find Organization Number
To find the Organization Number, click here.
What to do if your action is not listed here?
If this component doesn't have the action you need, you can use Custom Action to create your own. Custom Actions empower you to define HTTP requests tailored to your specific requirements, allowing for greater flexibility in integrating with external services or APIs.
To create a Custom Action, simply specify the desired HTTP method, path, and any necessary parameters. This way, you can extend the functionality of your component beyond the predefined actions, ensuring that you can meet all your integration needs effectively.
Additional Instructions
How to find your LinkedIn Organization Number
- Log in to LinkedIn and open the Organization Page for your company (you need to be an administrator of the page).
- Look at the URL in your web browser's address bar.
- Find the numeric value that appears immediately after
/company/or/organization/in the URL. For example: inhttps://www.linkedin.com/company/12345678/the Organization Number is12345678. - Copy this number and paste it into the Organization Number field in ByteChef.
Comments on organization posts
The Get Comments action and the New Comment trigger work only for organization (company page) posts. They require your LinkedIn app to have access to the Community Management API and the r_organization_social_feed scope to be enabled for the connection.
Comments on personal profile posts are not supported, because reading them requires the restricted r_member_social_feed permission, which LinkedIn grants only to select developers.
How is this guide?
Last updated on
Linear
Linear is a project management and issue tracking tool designed primarily for software teams.
LiteLLM
LiteLLM is a self-hosted AI gateway proxy that provides a unified OpenAI-compatible API for 100+ LLM providers, enabling model fallbacks, load balancing, and spend tracking through a single endpoint.