【问题标题】:Is it possible to add share text as a query string to LinkedIn sharing URL and get it to work with LinkedIn mobile app?是否可以将共享文本作为查询字符串添加到 LinkedIn 共享 URL 并使其与 LinkedIn 移动应用程序一起使用?
【发布时间】:2017-10-12 13:45:36
【问题描述】:

“文本”查询字符串适用于桌面,但在移动设备上,该链接会打开 LinkedIn 移动应用程序(如果已安装)。有什么办法可以让这个工作或者这是LinkedIn不支持的东西? 例子: https://www.linkedin.com/shareArticle?mini=true&url=http://developer.linkedin.com&title=LinkedIn%20Developer%20Network &summary=My%20favorite%20developer%20program&source=LinkedIn&text=Test

【问题讨论】:

标签: linkedin linkedin-api


【解决方案1】:

查看 LinkedIn.com: Making Your Website Shareable on LinkedIn 的标准 LinkedIn 文档,您会觉得您可以控制的唯一内容是:标题、图像、描述和 URL,通过og: 标签。

但是,进一步看,如果您使用 LinkedIn Share API 注册,您可以发送请求到...

POST https://api.linkedin.com/v2/ugcPosts

内容主体如...

{
  "author": "urn:li:person:8675309",
  "lifecycleState": "PUBLISHED",
  "specificContent": {
      "com.linkedin.ugc.ShareContent": {
          "shareCommentary": {
              "text": "Hello World! This is my first Share on LinkedIn!"
          },
 }

如果一切顺利,您将获得201 Created 的服务器代码。

来源:LinkedIn.com: Consumer Solutions Platform > Integrations > Share on LinkedIn

因此,您可以在 LinkedIn 中预填充完整的消息。当然,这将要求用户在您的站点上验证他们的 LinkedIn 帐户,并要求您注册您的应用程序。这不仅仅是使用简单的可共享的东西,但它似乎有效!

【讨论】:

    猜你喜欢
    • 2013-10-03
    • 2020-10-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-07-08
    • 2022-06-10
    • 1970-01-01
    相关资源
    最近更新 更多