Facebook调试器lint工具获取HTTP 206 - 不检测Open Graph元标记(其他工具) [英] Facebook Debugger lint tool gets HTTP 206 - doesn't detect Open Graph meta tags (others tools do)

查看:153
本文介绍了Facebook调试器lint工具获取HTTP 206 - 不检测Open Graph元标记(其他工具)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我相信我的网站对于Facebook&打开图表元标记。但是检查Facebook的linter显示没有任何标签被检测到。你可以在这里看到:

I believe my site has the correct markup for Facebook & Open Graph meta tags. But checking Facebook's linter shows that none of the tags are being detected. You can see for yourself here:

http://developers.facebook.com/tools/debug/og/object?q=goodloesolitaire.com

当我使用不同的网站,找到标签:

When I use a different site, the tags are found:

http://www.opengraph.in/?url=goodloesolitaire.com&format=html

我经历了类似的问题,没有一个检查出来。任何关于为什么Facebook的调试器可能看不到的想法?

I went through the similar questions and none of those check out. Any ideas on why Facebook's debugger might see nothing?

推荐答案

Facebook正在看到HTTP代码206部分内容而不是正常的200 OK。

Facebook is seeing HTTP code 206 "Partial Content" instead of normal 200 "OK".


206部分内容:如果客户端的
部分内容副本在缓存并请求并更新丢失的
内容。此消息表示部分请求成功。

206 "Partial Content": This message might occur if a client has a partial copy of content in its cache and requests and update of missing content. This message indicates that the partial request succeeded.

我发现一个旧的论坛帖子: http://forum.developers.facebook.net/viewtopic.php?id=68440

I found one old forum post about it: http://forum.developers.facebook.net/viewtopic.php?id=68440

看起来它可能是与缓存有关的服务器配置问题。您是否在服务器上运行清漆或类似的清漆?

It looks like it might be a server configuration issue to do with caching. Do you run Varnish or anything like that on your server? Check in to that.

另一件事可能是将您的字符集元标记移到Open Graph标签下面,所以Facebook知道正确的编码来解析它们。此外,使用此类型的标签可能会更好:

Another thing to try might be to move your charset meta tag below your Open Graph tags, so Facebook knows the right encoding to parse them with. Also, using this type tag might work better:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

最后,确保您没有任何东西阻止Facebook刮板用户代理。如文档所述:

Finally, make sure you don't have anything blocking the Facebook scraper user agent. As mentioned in their documentation:


我们的漫游器功能与用户代理facebookexternalhit / *。使
确保您没有阻止该用户代理。另外,请确保Facebook的
服务器可以访问您的服务器。

Our bot functions with the User Agent "facebookexternalhit/*". Make sure you're not blocking that user agent. Also, make sure Facebook's servers can reach your server.

这篇关于Facebook调试器lint工具获取HTTP 206 - 不检测Open Graph元标记(其他工具)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆