打开图形错误和图像标签未正确渲染

发布于 2024-12-23 05:07:21 字数 518 浏览 3 评论 0原文

我们有一个 WordPress 网站,它使用插件在我们的内容上放置开放图谱标签。使用 FB linter 时,我们收到以下错误:

响应代码:200
获取的 URL:facecrooks[dot]com/
规范 URL:facecrooks[dot]com/
必须修正的错误

身体元:你的头脑之外有元标签。这要么是因为您的头部畸形并且它们在解析树中的位置较低,要么是您不小心将开放图标签放在了错误的位置。无论哪种方式,您都需要在标签可用之前修复它。

我们无法在标头之外找到任何元标记。

此外,当我们将网站上的项目发布到 Facebook 页面时,会选择随机图像,而不是 OG 中定义的图像。通常选择的图片是右栏中的 125x125 广告。

您可以通过访问 http://facecrooks.com 验证开放图谱标签在网站上是否处于活动状态,然后查看源代码。

任何有关如何修复这些错误的想法将不胜感激!

We have a Wordpress site that uses a plugin to place Open Graph tags on our content. We receive the following error when using the FB linter:

Response Code: 200
Fetched URL: facecrooks[dot]com/
Canonical URL: facecrooks[dot]com/
Errors That Must Be Fixed

Body Meta: You have meta tags outside of your head. This is either because your head was malformed and they fell lower in the parse tree, or you accidentally put your Open Graph tags in the wrong place. Either way you need to fix it before the tags are usable.

We have not been able to locate any meta tags outside of the header.

Also, when we post an item from our website to our Facebook page a random image is selected instead of the one defined in the OG. Usually the image selected is a 125x125 ad from our right column.

You can verify that the Open Graph Tags are active on the site by visiting http://facecrooks.com and then view source.

Any idea on how to fix these errors would be greatly appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

表情可笑 2024-12-30 05:07:21

也许 facebook 的 linter 不喜欢 head 部分的 HTML div 标签......

<noscript>

<div style="display:none;">

<img src="//pixel.quantserve.com/pixel/p-74ksBYx3WjrXU.gif" border="0" height="1" width="1" alt="Quantcast"/>

</div>

</noscript>

Maybe facebook's linter doesn't like the HTML div tags in the head section...

<noscript>

<div style="display:none;">

<img src="//pixel.quantserve.com/pixel/p-74ksBYx3WjrXU.gif" border="0" height="1" width="1" alt="Quantcast"/>

</div>

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