【问题标题】:How to share on linkedin using "Opengraph" in angularjs?如何在angularjs中使用“Opengraph”在linkedin上分享?
【发布时间】:2017-08-19 19:14:23
【问题描述】:

参考下面提到的链接,我们做了一个 Facebook 分享。现在我们的客户也希望在 LinkedIn 上获得同样的体验。

任何人都可以建议一种方法或方法来为 LinkedIn 实现相同的体验

Facebook 参考链接: Using "share_open_graph" Facebook UI to create dynamic share dialog for quiz results

【问题讨论】:

  • 请写一个正确的问题,说明你真正想要什么,到目前为止你做了什么。对你没有做的事情的解决方案根本没有帮助。

标签: angularjs share linkedin facebook-opengraph


【解决方案1】:

第 1 步:设置您的分享网址

https://www.linkedin.com/sharing/share-offsite/?url={url}

来源:Official MSD LinkedIn Share Documentation

第 2 步 - 处理标题、描述、图片等

将这些放入 HTML 的 <head> 块中,因为您已经在为 Facebook 执行此操作,所以现在应该完成这部分...

  • <meta property='og:title' content='Title of the article'/>
  • <meta property='og:image' content='//media.example.com/ 1234567.jpg'/>
  • <meta property='og:description' content='Description that will show in the preview'/>
  • <meta property='og:url' content='//www.example.com/URL of the article' />

来源:LinkedIn Share Documentation: Making Your Website Shareable on LinkedIn

第 3 步 - 验证一切正常

通过 LinkedIn Post Inspector 检查您的网址。在此处插入您的网址(即example.com),而不是您要与之共享的网址(即linkedin.com?url=example.com)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-06
    • 2016-05-05
    • 2017-11-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多