2017-07-27 82 views
-6

昨天仍然工作。不工作分享facebook

For example

<meta property="fb:app_id" content="1495651450680325" /> 
    <meta property="og:description" content=""> 
    <meta property="og:title" content="test page for facebook sharing"/> 
    <meta property="og:type" content="website" /> 
    <meta property="og:url" content="http://archspeech.com/ttt.php" /> 
    <meta property="og:image" id="share_meta" content="http://archspeech.com/image/article/b_673e3dfec90c94aac432e2ed2a9f979d.jpg"/> 
    <link rel="image_src" id="share_link" href="http://archspeech.com/image/article/b_673e3dfec90c94aac432e2ed2a9f979d.jpg" /> 

In facebook debug

When sharing

谢谢!

+0

帮帮我!!!!!!!! –

+0

使用“请参阅我们的刮板看到您的URL的确切内容”,它看起来像任何文章URL被请求,刮板接收的文档只包含元刷新,尝试重定向到原始URL并添加'?attempt = 1'到它。我的猜测是有人在这里以一种相当愚蠢的方式实施了cookie检查... – CBroe

+0

CBroe,可以做些什么? –

回答

0

您应该在放入任何JavaScript之前放置所有OG标记,Facebook刮板只会检查网站的一部分以检查OG标记。这可能是问题,因为有很多JS(和CSS)文件。你可能也想做一些缩小。

在调试器中点击“查看我们的刮板看到你的URL”,你会看到他看到的。

此外,使用此文档类型:<!DOCTYPE html> - 并确保在doctype之前没有空白行。并确保您正确关闭所有标签,og:description标签最后缺少斜线。

如果调试器仍然看到您的旧代码,它可能是一个缓存问题。你可以在这里提交一个bug:https://developers.facebook.com/bugs/

+0

我创建了测试页面,没有js和css?但与og元标签 - http://archspeech.com/ttt.php。但Facebook的debuger显示错误 - https://developers.facebook.com/tools/debug/sharing/?q=http%3A%2F%2Farchspeech.com%2Fttt.php –

+0

为什么这种老文档?请使用那个:<!DOCTYPE html> – luschn

+0

另外,请确保在doctype前没有空行 – luschn