当 Facebook 抓取工具发现
当 Facebook 抓取工具查看我的页面时,它会在发现 noscript 标签时关闭 head 标签。如果您查看页面源代码,您将看到元标记位于页面的 head 标记内。查看调试器中的错误: http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.rightmove.co.uk%2Fproperty-for-sale%2Fproperty-34534103。 html
在 Facebook 开放图调试器上,您会看到一个不同的页面,该页面已提前关闭 head 标签:http://developers.facebook.com/tools/debug/og/echo?q=http%3A%2F%2Fwww.rightmove.co.uk%2Fproperty-for-sale%2Fproperty-34534103。 html
奇怪诶?
When the Facebook scraper looks at my page it closes the head tag when it finds a noscript tag. If you view the page source you will see that the meta tags are within the head tag of the page. Look at the debugger for the error: http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.rightmove.co.uk%2Fproperty-for-sale%2Fproperty-34534103.html
On the Facebook open graph debugger you get a different page that has closed the head tag early: http://developers.facebook.com/tools/debug/og/echo?q=http%3A%2F%2Fwww.rightmove.co.uk%2Fproperty-for-sale%2Fproperty-34534103.html
Strange ehy?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
标记在
元素中无效,是吗?也许 Facebook 的解析器正在考虑 noscript 标签的存在隐式结束
?
另请参阅此处:中
A
<noscript>
tag wouldn't be valid in a<head>
element would it? Maybe Facebook's parser is considering the presence of the noscript tag to be implicitly ending the<head>
?See here also: <noscript> in <head>