【问题标题】:content share in LinkedIn not displaying the imageLinkedIn中的内容共享不显示图像
【发布时间】:2013-08-22 10:06:36
【问题描述】:

我在我的页面中添加了标签,但在 LinkedIn 共享时它没有获取图像。

我想知道如何在使用 LinkedIn 分享时自定义图像。

http://www.linkedin.com/shareArticle?mini=true'+'&url='+articleUrl+'&title='+articleTitle+ '&summary='+articleSummary+'&source='+articleSource

请告诉我在 LinkedIn 上分享时如何获取图片。

【问题讨论】:

    标签: share linkedin


    【解决方案1】:

    http://www.linkedin.com/cws/share?token&isFramed=false&url=http%3A%2F%2Fwpsites.net%2Fweb-design%2Fstyle-jetpacks-social-sharing-sharedaddy-buttons%2F

    在浏览器上使用它来处理图像。

    在您希望分享该页面所需图片的网址中,然后只有图片会显示在分享标签上

    您想分享的网址必须在网上。

    从给定的 URL 自动获取图像。请尝试一些具有图像标签的有效网址

    【讨论】:

      【解决方案2】:

      使用你的 html 页面上的元标记来指示爬虫如何呈现链接,还有一个 image 属性:

      <html prefix="og: http://ogp.me/ns#">
      <head>
        <meta property="og:title" content="My Shared Article Title" />
        <meta property="og:description" content="Description of shared article" />
        <meta property="og:url" content="http://example.com/my_article.html" />
        <meta property="og:image" content="http://example.com/foo.jpg" />
      </head>
      <body>
         …
      </body>
      </html>
      

      来源:https://developer.linkedin.com/docs/share-on-linkedin#methods

      【讨论】:

        猜你喜欢
        • 2012-02-12
        • 1970-01-01
        • 1970-01-01
        • 2015-04-26
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-12-13
        相关资源
        最近更新 更多