当 Facebook 抓取工具发现

发布于 2024-12-14 23:18:49 字数 758 浏览 5 评论 0原文

当 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

诠释孤独 2024-12-21 23:18:49

标记在 元素中无效,是吗?也许 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>

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文