【问题标题】:Facebook og:image issueFacebook og:图像问题
【发布时间】:2015-04-24 06:50:14
【问题描述】:

我的 facebook 图片有问题。我的图片在分享时没有显示,而在 google+ 上工作正常。 facebook 调试器给了我以下信息:

og:image 未定义,无法下载或不够大。请使用 og:image 元标记定义所选图像,并使用至少 200x200 像素且可从 Facebook 访问的图像。将使用图像“https://marketsrally.com/images/video/text-banner.png”。

我的OG标签:

<meta property="fb:app_id" content="388490671332868" />
<meta http-equiv='content-type' content='text/html; charset=utf-8' />
<meta property="og:title" content="Markets Rally" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://marketsrally.com" />
<meta property="og:image" content="https://marketsrally.com/images/socialLogo.jpeg" />
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="300" />
<meta property="og:image:height" content="313" />
<meta property="og:site_name" content="Markets Rally" />
<meta property="og:description" content="Join us and get a pole position on the Markets Rally" />
<meta name="description" content="The World Leaders in online Binary Options, for trading on indices, commodities, currencies and stocks." />
<meta name="keywords" content="https://marketsally.com binary options, digital options, trade options, options trading, options, binary trading, easy profit, quick profit, easy trading, simple trading, forex, forex trading, online trading, nasdaq, dow jones, dax, crude oil, gold" />

网站链接:

https://marketsrally.com/

我的图片宽度和高度约为 300 像素,链接有效。它是 jpg 格式,虽然我尝试使用 PNG。可能是什么问题?

【问题讨论】:

  • P.S.更新:似乎在我刷新网站后,fb 问题已修复。但现在 google+ 显示错误图像,LinkedIn 显示旧图像和描述。如何像 fb 一样调试它们或刷新它们的演示文稿?(google 和linkedin)

标签: html facebook webforms


【解决方案1】:

看看http://beta.beantin.se/clearing-linkedin-link-sharing-preview-cache/ 显然您需要在页面标题中为 Google+ 设置缓存指令,并为 LinkedIn 添加一个附加参数。

您可以在页面的 html 代码中使用元标记(请参阅http://www.i18nguy.com/markup/metatags.html),也可以在您的网络服务器的 http 响应标头中使用元标记(请参阅http://www.mobify.com/blog/beginners-guide-to-http-cache-headers/)。

【讨论】:

  • 好的,谢谢我读了。谷歌的这些缓存指令究竟是如何设置的?
猜你喜欢
  • 2015-07-16
  • 2016-06-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-11-27
相关资源
最近更新 更多