返回顶部
l

linkedin-pipedream领英集成

Post to LinkedIn, comment, like, search organizations, and manage profiles via Pipedream OAuth integration.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
1,700
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

linkedin-pipedream

通过Pipedream实现LinkedIn自动化 — 发布、评论与互动

利用Pipedream的OAuth基础设施实现完整的LinkedIn自动化。可以以个人或组织身份发布内容、评论帖子、搜索公司等。

前置条件

  1. 1. 已安装并配置pdauth CLI — 参见pdauth技能
  2. 已通过OAuth连接LinkedIn账号

快速开始

bash

1. 连接LinkedIn(生成供用户点击的OAuth链接)


pdauth connect linkedin --user telegram:5439689035

2. 用户授权后,验证连接状态

pdauth status --user telegram:5439689035

3. 在LinkedIn发布帖子

pdauth call linkedin.linkedin-create-text-post-user \ --user telegram:5439689035 \ --args {instruction: Create a post: Excited to announce our new product launch! 🚀}

OAuth流程

bash

生成OAuth链接


pdauth connect linkedin --user USER_ID

分享给用户:点击授权LinkedIn:<链接>

用户点击 → 通过LinkedIn授权 → 完成

验证连接状态

pdauth status --user USER_ID

用户ID约定: Telegram用户使用telegram:格式。



可用工具(共19个)

✅ 通过MCP正常工作(pdauth call)

工具用途
linkedin-create-text-post-user以个人账号发布文字帖子
linkedin-create-image-post-user
以个人账号发布带图片的帖子 | | linkedin-create-comment | 评论任意帖子 | | linkedin-create-like-on-share | 点赞帖子 | | linkedin-search-organization | 搜索公司 | | linkedin-get-current-member-profile | 获取自己的个人资料 | | linkedin-get-member-profile | 获取任意成员的个人资料 | | linkedin-get-org-member-access | 检查组织管理员状态 | | linkedin-retrieve-comments-shares | 获取帖子的评论 | | linkedin-delete-post | 删除自己的帖子 |

⚠️ 通过MCP存在问题(需要变通方案)

工具问题变通方案
linkedin-create-text-post-organization工具名称过长错误使用直接SDK调用
linkedin-create-image-post-organization
相同错误 | 使用直接SDK调用 |

工具参考

1. 创建个人帖子

bash
pdauth call linkedin.linkedin-create-text-post-user \
--user telegram:5439689035 \
--args {instruction: Create a post: Your post content here. Use emojis 🎉 and hashtags #AI #Tech}

提示:

  • - 帖子内容控制在3000字符以内
  • 使用表情符号可提高互动率
  • 使用换行符增强可读性

2. 创建带图片的帖子(个人)

bash
pdauth call linkedin.linkedin-create-image-post-user \
--user telegram:5439689035 \
--args {instruction: Create image post with text: Check out our new office! Image URL: https://example.com/image.jpg}

3. 评论帖子

bash

使用帖子URN进行评论


pdauth call linkedin.linkedin-create-comment \
--user telegram:5439689035 \
--args {instruction: Comment on urn:li:share:7293123456789012480 with text: Great insights! Thanks for sharing.}

查找帖子URN:

  • - 从LinkedIn URL获取:linkedin.com/posts/username_activity-7293123456789012480 → URN为urn:li:share:7293123456789012480
  • 或在已知帖子上使用linkedin-retrieve-comments-shares

4. 点赞帖子

bash
pdauth call linkedin.linkedin-create-like-on-share \
--user telegram:5439689035 \
--args {instruction: Like the post urn:li:share:7293123456789012480}

5. 搜索组织

bash
pdauth call linkedin.linkedin-search-organization \
--user telegram:5439689035 \
--args {instruction: Search for companies matching: artificial intelligence startups}

6. 获取个人资料

bash
pdauth call linkedin.linkedin-get-current-member-profile \
--user telegram:5439689035 \
--args {instruction: Get my LinkedIn profile}

返回:姓名、头衔、URN、自定义名称等。

7. 获取成员资料

bash
pdauth call linkedin.linkedin-get-member-profile \
--user telegram:5439689035 \
--args {instruction: Get profile for member URN urn:li:person:30_5n7bx7f}

8. 检查组织管理员权限

bash
pdauth call linkedin.linkedin-get-org-member-access \
--user telegram:5439689035 \
--args {instruction: Check my access level for organization 105382747}

返回:ADMINISTRATOR、MEMBER或NONE

9. 获取帖子评论

bash
pdauth call linkedin.linkedin-retrieve-comments-shares \
--user telegram:5439689035 \
--args {instruction: Get comments for post urn:li:share:7293123456789012480}

10. 删除帖子

bash
pdauth call linkedin.linkedin-delete-post \
--user telegram:5439689035 \
--args {instruction: Delete post urn:li:share:7293123456789012480}



组织发帖(需要变通方案)

问题说明

linkedin-create-text-post-organization通过MCP调用会失败,错误信息为:

Error: tool name too long

这是Pipedream MCP的bug,并非LinkedIn API的问题。

变通方案:直接SDK调用

创建Node.js脚本以组织身份发帖:

javascript
// org-post.mjs
import { PipedreamClient } from @pipedream/sdk;

const client = new PipedreamClient({
projectEnvironment: development,
clientId: YOURCLIENTID, // 来自 ~/.config/pdauth/config.json
clientSecret: YOURCLIENTSECRET,
projectId: YOURPROJECTID,
});

async function postAsOrg(orgId, text) {
const result = await client.actions.run({
id: linkedin-create-text-post-organization,
externalUserId: telegram:5439689035,
configuredProps: {
linkedin: { authProvisionId: apn_4vhLGx4 }, // LinkedIn账号ID
organizationId: orgId,
text: text,
},
});
console.log(已发布!, result);
}

// 使用示例
postAsOrg(105382747, Hello from Versatly! 🚀);

运行方式:
bash
node org-post.mjs

已知组织ID

组织IDURN
Versatly105382747urn:li:organization:105382747

关键参考值

Pedro的LinkedIn信息

项目
成员URNurn:li:person:30_5n7bx7f
用户ID(Pipedream)
telegram:5439689035 | | 认证提供ID | apn_4vhLGx4 | | 管理员身份 | Versatly(组织ID 105382747) |

URN格式

类型格式示例
个人urn:li:person:IDurn:li:person:30_5n7bx7f
组织
urn:li:organization:ID | urn:li:organization:105382747 | | 帖子/分享 | urn:li:share:ID | urn:li:share:7293123456789012480 | | 评论 | urn:li:comment:(urn:li:share:ID,ID) | 复杂的嵌套URN |

常见模式

模式1:发布并验证

bash

发布帖子


pdauth call linkedin.linkedin-create-text-post-user \
--user

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 linkedin-pipedream-1776365296 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 linkedin-pipedream-1776365296 技能

通过命令行安装

skillhub install linkedin-pipedream-1776365296

下载

⬇ 下载 linkedin-pipedream v1.0.0(免费)

文件大小: 5.54 KB | 发布时间: 2026-4-17 15:17

v1.0.0 最新 2026-4-17 15:17
- Initial release of linkedin-pipedream skill.
- Enables posting, commenting, liking, searching organizations, and managing LinkedIn profiles via Pipedream OAuth integration.
- Includes 19 tools for LinkedIn automation; most work via MCP, with organization posting requiring a workaround.
- Requires prior installation and configuration of the pdauth skill for authentication.
- Detailed usage examples and tool reference provided in documentation.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部