2015-04-24 65 views
0

我遇到了facebook图片的问题。我的图片没有在共享上显示,而在google +上工作正常。脸谱调试器给我以下消息:Facebook og:图片问题

og:图像未定义,无法下载或不够大。请使用og:image metatag定义选定的图片,并使用至少200x200px的图片,并可从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。可能是什么问题呢?

+0

P.S.更新:似乎在我刷新网站后,fb问题已修复。但现在google +显示错误的图像,而LinkedIn则显示旧图像和描述。我怎样才能调试他们像fb或刷新他们的演示文稿?(谷歌和linkedin) –

回答

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/)。

+0

好的,谢谢我阅读它。谷歌的这些缓存指令究竟是如何设置的? –

+0

编辑我的答案。 – Tobi