【问题标题】:LinkedIn & Twitter, Share website image through URLLinkedIn & Twitter,通过 URL 分享网站图片
【发布时间】:2018-10-04 12:41:15
【问题描述】:

以下示例 URL 帮助我将图像分享到 Facebook、GooglePlus 和 Pinterest:

GooglePlushttps://plus.google.com/share?url=https://www.google.co.in/images/branding/googlelogo/2x/googlelogo_color_120x44dp.png

脸书https://www.facebook.com/sharer.php?u=https://www.google.co.in/images/branding/googlelogo/2x/googlelogo_color_120x44dp.png

Pinteresthttps://in.pinterest.com/pin/create/button/?url=&media=https://www.google.co.in/images/branding/googlelogo/2x/googlelogo_color_120x44dp.png

像这样,我很想知道,任何 Twitter 和 LinkedIn URL 格式都允许图像共享(只有一个图像 URL)...

谢谢!

【问题讨论】:

  • @JeffProd 刚刚试过你给定的 URL 格式,我可以通过它共享 URL,但我想显示共享图像,就像我为 facebook、googleplus 和 pinterest 列出的那样

标签: twitter linkedin imageurl socialshare


【解决方案1】:

推特...

https://twitter.com/intent/tweet?url={url}&text={title}&via={user_id}&hashtags={hash_tags}

来源:Official Twitter Share URL Documentation

领英...

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

来源:Official LinkedIn Share Documentation

希望能够为titledescriptionimage 等自定义页面预览?然后查看必要的og: 标签。这是它的 LinkedIn 文档,但相同的文档主要适用于所有服务。

来源:Open Graph Tags Documentation from LinkedIn

【讨论】:

    猜你喜欢
    • 2014-12-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-01-10
    • 1970-01-01
    • 1970-01-01
    • 2018-10-13
    相关资源
    最近更新 更多