LinkedIn 凭证#
¥LinkedIn credentials
你可以使用以下凭据验证以下节点:
¥You can use these credentials to authenticate the following nodes:
先决条件#
¥Prerequisites
- 创建 LinkedIn 账户。
¥Create a LinkedIn account.
- 创建 LinkedIn 公司页面。
¥Create a LinkedIn Company Page.
支持的身份验证方法#
¥Supported authentication methods
- 社区管理 OAuth2:如果你是 LinkedIn 新用户或正在创建新的 LinkedIn 应用,请使用此方法。
¥Community Management OAuth2: Use this method if you're a new LinkedIn user or creating a new LinkedIn app.
- OAuth2:对于较旧的 LinkedIn 应用和用户账户,请使用此方法。
¥OAuth2: Use this method for older LinkedIn apps and user accounts.
相关资源#
¥Related Resources
有关服务的更多信息,请参阅 LinkedIn 社区管理 API 文档。
¥Refer to LinkedIn's Community Management API documentation for more information about the service.
此凭据适用于 API 版本 202404。
¥This credential works with API version 202404.
使用社区管理 OAuth2#
¥Using Community Management OAuth2
如果你是 LinkedIn 新用户或正在创建新的 LinkedIn 应用,请使用此方法。
¥Use this method if you're a new LinkedIn user or creating a new LinkedIn app.
要配置此凭据,你需要一个 LinkedIn 账户、一个 LinkedIn 公司页面 账户以及:
¥To configure this credential, you'll need a LinkedIn account, a LinkedIn Company Page, and:
- 客户端 ID:创建新的开发者应用后生成。
¥A Client ID: Generated after you create a new developer app.
- 客户端密钥:创建新的开发者应用后生成。
¥A Client Secret: Generated after you create a new developer app.
要创建新的开发者应用并设置凭据:
¥To create a new developer app and set up the credential:
- 登录 LinkedIn 并选择此链接 创建新开发者应用。
¥Log into LinkedIn and select this link to create a new developer app.
2. 输入你的应用名称,例如 n8n integration。
¥Enter an App name for your app, like n8n integration.
3. 对于 LinkedIn 页面,请输入 LinkedIn 公司页面,或使用“创建新的 LinkedIn 页面”链接即时创建一个。有关更多信息,请参阅 将应用关联到 LinkedIn 页面。
¥For the LinkedIn Page, enter a LinkedIn Company Page or use the Create a new LinkedIn Page link to create one on-the-fly. Refer to Associate an App with a LinkedIn Page for more information. 4. 添加应用图标
¥Add an App logo. 5. 选中复选框以同意法律协议。
¥Check the box to agree to the Legal agreement. 6. 选择“创建应用”。
¥Select Create app. 7. 这应该打开“产品”选项卡。选择要为你的应用启用的产品/API。要使 LinkedIn 节点正常工作,你必须包含并配置以下内容:
¥This should open the Products tab. Select the products/APIs you want to enable for your app. For the LinkedIn node to work properly, you must include and configure:
-
在 LinkedIn 上分享
¥Share on LinkedIn
-
使用 OpenID Connect 通过 LinkedIn 登录。
¥Sign In with LinkedIn using OpenID Connect
-
广告 API(如果使用组织账户而非个人账户)
¥Advertising API (if using it as an organization account rather than an individual) 8. 请求访问所需产品后,打开“身份验证”选项卡。
¥Once you've requested access to the products you need, open the Auth tab. 9. 复制客户端 ID,并将其作为你的 n8n 客户端 ID 输入。
¥Copy the Client ID and enter it in your n8n credential. 10. 选择用于复制主客户端密钥的图标。将此作为客户端密钥输入到你的 n8n 凭据中。
1 | |
Posting from organization accounts
要以组织身份发布内容,你需要将你的应用提交给 LinkedIn 的 社区管理应用评测 处理流程。
¥To post as an organization, you need to put your app through LinkedIn's Community Management App Review process.
有关范围和权限的更多信息,请参阅 获取 LinkedIn API 访问权限。
¥Refer to Getting Access to LinkedIn APIs for more information on scopes and permissions.
使用 OAuth2#
¥Using OAuth2
仅将此方法用于旧版 LinkedIn 应用和用户账户。
¥Only use this method for older LinkedIn apps and user accounts.
Note for n8n Cloud users
Cloud users don't need to provide connection details. Select Connect my account to connect through your browser.
所有用户必须选择:
¥All users must select:
- 组织支持:如果启用,凭据将请求以
w_organization_social范围的组织身份发布帖子的权限。
¥Organization Support: If turned on, the credential requests permission to post as an organization using the w_organization_social scope.
-
要使用此选项,你必须将你的应用提交到 LinkedIn 的 社区管理应用评测 流程。
¥To use this option, you must put your app through LinkedIn's Community Management App Review process.
-
旧版:如果启用,凭据将使用旧版
r_liteprofile和r_emailaddress范围,而不是较新的profile和email范围。
¥Legacy: If turned on, the credential uses legacy scopes for r_liteprofile and r_emailaddress instead of the newer profile and email scopes.
如果你使用的是 self-hosting n8n,则需要通过创建一个新的开发者应用来从头开始配置 OAuth2:
¥If you're self-hosting n8n, you'll need to configure OAuth2 from scratch by creating a new developer app:
- 登录 LinkedIn 并选择此链接 创建新开发者应用。
¥Log into LinkedIn and select this link to create a new developer app.
2. 输入你的应用名称,例如 n8n integration。
¥Enter an App name for your app, like n8n integration.
3. 对于 LinkedIn 页面,请输入 LinkedIn 公司页面,或使用“创建新的 LinkedIn 页面”链接即时创建一个。有关更多信息,请参阅 将应用关联到 LinkedIn 页面。
¥For the LinkedIn Page, enter a LinkedIn Company Page or use the Create a new LinkedIn Page link to create one on-the-fly. Refer to Associate an App with a LinkedIn Page for more information. 4. 添加应用图标
¥Add an App logo. 5. 选中复选框以同意法律协议。
¥Check the box to agree to the Legal agreement. 6. 选择“创建应用”。
¥Select Create app. 7. 这应该打开“产品”选项卡。选择要为你的应用启用的产品/API。要使 LinkedIn 节点正常工作,你必须包含以下内容:
¥This should open the Products tab. Select the products/APIs you want to enable for your app. For the LinkedIn node to work properly, you must include:
-
在 LinkedIn 上分享
¥Share on LinkedIn
-
使用 OpenID Connect 通过 LinkedIn 登录。
¥Sign In with LinkedIn using OpenID Connect 8. 请求访问所需产品后,打开“身份验证”选项卡。
¥Once you've requested access to the products you need, open the Auth tab. 9. 复制客户端 ID,并将其作为你的 n8n 客户端 ID 输入。
¥Copy the Client ID and enter it in your n8n credential. 10. 选择用于复制主客户端密钥的图标。将此作为客户端密钥输入到你的 n8n 凭据中。
1 | |
Posting from organization accounts
要以组织身份发布内容,你需要将你的应用提交给 LinkedIn 的 社区管理应用评测 处理流程。
¥To post as an organization, you need to put your app through LinkedIn's Community Management App Review process.
有关范围和权限的更多信息,请参阅 获取 LinkedIn API 访问权限。
¥Refer to Getting Access to LinkedIn APIs for more information on scopes and permissions.