2

我有几个 wordpress 网站。

但在其中一个网站中,Facebook Open Graph 似乎没有正确提取特色图片。

所以我在 Facebook 对象调试器中测试了网址: https ://developers.facebook.com/tools/debug

然后它向我显示了这种错误:

必须修复的错误

正文中的元标记:您的页面在正文而不是头部有元标记。这可能是 > > 因为您的 HTML 格式错误并且它们在解析树中的位置较低。请修复此问题以使标签可用。

而这种警告:

应该修复的开放图警告

推断属性:应显式提供“og:url”属性,即使可以从其他标签推断出值。

推断属性:应显式提供“og:title”属性,即使可以从其他标签推断出值。

推断属性:应显式提供“og:description”属性,即使可以从其他标签推断出值。

推断属性:应显式提供“og:image”属性,即使可以从其他标签推断出值。

og:image 应该更大:前提是 og:image 不够大。请使用至少 200x200 像素的图片。将使用图像“ http://maummeditationbenefits.org/wp-content/uploads/2013/05/635764_thumb-221x130.jpg ”。

它显示了这样的解析数据:

{
"id": "402089739910371",
"url": "http://maummeditationbenefits.org/blog/2013/06/19/maum-meditation-youth-camp/",
"type": "website",
"title": "Maum Meditation Youth Camp | Maum Meditation Benefits",
"image": [
    {"url": "http://maummeditationbenefits.org/wp-content/uploads/2013/05/maum-meditation-benefits-logo.png",
    "width": 397,
    "height": 51},
    {"url": "http://maummeditationbenefits.org/wp-content/themes/opinions/timthumb.php?src=http%3A%2F%2Fmaummeditationbenefits.org%2Fwp-content%2Fuploads%2F2013%2F07%2Funiv_camp.jpg&q=90&w=208&h=110&zc=1"},
    {"url": "http://maummeditationbenefits.org/wp-content/themes/opinions/timthumb.php?src=http%3A%2F%2Fmaummeditationbenefits.org%2Fwp-content%2Fuploads%2F2013%2F07%2FIMG_1317_thumb.jpg&q=90&w=208&h=110&zc=1"},
    {"url": "http://maummeditationbenefits.org/wp-content/uploads/2013/06/banner-Chambooks.png"},
    {"url": "http://cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif"}
    ],
"description": "Here at the Maum Meditation Youth Camp, well there is human mind which has been accumulated throughout the childrens lives, so Maum Meditation changes that mind into the Universe mind. This camp enables kids to throw away that human mind. So, as they throw away their mind by following this method, t…",
"updated_time": "2013-07-30T09:48:06+0000",
"created_time": "2013-06-19T18:19:41+0000",
"is_scraped": true
}

但是在图像数组内部,没有特色图像 URL。

这种情况在所有帖子中都是一样的。

现在 SEO 插件和 Facebook Open Graph Meta For WordPress 插件被禁用。

但是当我启用这些插件时,结果是一样的。

所以现在只有 Jetpack Open Graph Tags 有效:

<!-- Jetpack Open Graph Tags -->
<meta property="og:type" content="article" />
<meta property="og:title" content="Maum Meditation Youth Camp" />
<meta property="og:url" content="http://maummeditationbenefits.org/blog/2013/06/19/maum-meditation-youth-camp/" />
<meta property="og:description" content="Here at the Maum Meditation Youth Camp, well there is human mind which has been accumulated throughout the childrens lives, so Maum Meditation changes that mind into the Universe mind. This camp en..." />
<meta property="og:site_name" content="Maum Meditation Benefits" />
<meta property="og:image" content="http://maummeditationbenefits.org/wp-content/uploads/2013/07/youth_camp.jpg" />

但是 Facebook 开放图仍然无法提取“og:image”的值。

这意味着当我尝试分享帖子时,它只显示其他未精选的图片。

谁能告诉我该怎么做?

4

0 回答 0