2015-05-10 74 views
0

我面临与Facebook这显示了错误的图像很多次,只是有时会显示使用这样Facebook上分享一个链接显示

<meta property="og:title" content="webpage title" /> 
<meta property="og:url" content="http://www.domain.com/webpage_url.php?id=17515278817738945084phb"> 
<meta property="fb:app_id" content="app id here"/> 
<meta property="og:type" content="website" /> 
<meta property="og:image" content="http://www.domain.com/large/image.jpg" /> 
代码正确的图像共享链接问题的错误图像

和调试页面时,我得到这个

The 'og:type' property is required, but not present. 

这个图像是1000 * 317px,仍然没有显示出来。这发生在我网站的所有链接上。我必须去url调试器并清除缓存,这样facebook才能获得正确的图像。所以如何解决这个问题,并让Facebook直接显示正确的图像?使用Facebook调试我得到这个通知 [更新]

og:image was not defined, could not be downloaded or was not big enough. Please define a 
chosen image using the og:image metatag, and use an image that's at least 200x200px and 
is accessible from Facebook. Image 'http://www.domain.com/gallery1/.jpg' will 
be used instead. 

但OG:图像正确设置和图像尺寸是关联大低于200 * 200和Facebook清除Facebook的缓存虽然它后显示正确的图像不断显示此通知

+0

如果您以前没有正确实施Open Graph元标记,并且Facebook已经刮掉了这些网址,那么您需要重新抓取它们,以便Facebook可以立即获取正确的数据。如果您需要自动执行大量链接,您还可以[通过API触发重新扫描](https://developers.facebook.com/docs/sharing/opengraph/using-objects#update)。 – CBroe

+0

不,它们是带有上述Open Graph元标记的新网址,Facebook并未缓存这些网址 –

+0

那么您应该修复调试工具首先显示的任何错误。只要你得到了'''':''属性是必需的,但是不存在',那么某些东西似乎是错误的。 – CBroe

回答

2

尝试指向您的索引文件。例如使用facebook对象调试器时www.yourdomain.com/index.php。它修复了我的og:name错误。

+0

非常感谢你这么多 –

相关问题