【问题标题】:Google share is not picking correct image while sharing谷歌分享在分享时没有选择正确的图片
【发布时间】:2016-02-07 15:32:22
【问题描述】:

我正在开发谷歌分享功能。

我正在使用 schema.org,如答案中所述 Google Plus share not picking meta tags from head

<body itemscope itemtype="http://schema.org/Product">
  <h1 itemprop="name">Shiny Trinket</h1>
  <img itemprop="image" src="{image-url}" />
  <p itemprop="description">Shiny trinkets are shiny.</p>
</body>

在此之后,我使用测试工具对此进行了测试 - https://developers.google.com/structured-data/testing-tool/

它使用测试工具显示正确的数据。但是当我从我的网站分享时,它会获取不同的图像。

我在同一页面上有具有相同信息的 og 标签。 Facebook 分享工作正常。

我不知道为什么 google 会选择错误的图像。这是缓存问题吗? 任何人都可以请帮忙。

注意-图片大小也是根据谷歌推荐

【问题讨论】:

    标签: javascript share social-networking facebook-opengraph


    【解决方案1】:

    由于图像尺寸问题,最终得到了解决方案,尝试使用适当比例的图像尺寸,例如 1600 x 900、600x400,看看它们应该可以工作。

    How to resize images proportionally / keeping the aspect ratio?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多