WordPress的所有在一个SEO插件没有分享到Facebook涂鸦墙(Wordpress All

2019-09-27 23:20发布

我用它来实现基于所有在一个SEO插件我的网页(WordPress的)Facebook的OpenGRaph协议。

每个页面:

<meta property="og:type" content="article">
<meta property="og:title" content="my_title">
<meta property="og:url" content="http://my_site.jp">
<meta property="og:description" content="my_content">
<meta property="article:published_time" content="my_published_time">
<meta property="article:modified_time" content="my_modified_time">
<meta property="og:site_name" content="my_site_name">
<meta property="og:image" content="http://my_site.jp/wp-content/uploads/2017/05/my_image.png">
<meta property="og:image:width" content="600">
<meta property="og:image:height" content="315">
<meta property="og:locale" content="my_cocale">

但随着检查,当我得到这些错误的Facebook开发人员调试 :

URL returned a bad HTTP response code.
Inferred Property
The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.

我从裁判: Facebook的Open Graph的错误-推断房产

但我没有任何解决方案。 让你的这个问题的解决方案?

Answer 1:

由于您最初链接的形象问题已经得到解决,很难说什么是错的,特别是因为你所提供的代码片段似乎罚款。 您提供的链接后,虽然,我得到这个错误:

The 'og:description' property should be explicitly provided, even if a value can be inferred from other tags.

这是因为没有一个明确的og:description页面上可用的标签。

有人无关:我注意到重复twitter:card和相关的标签。 这应该不会导致的Open Graph到不行,但应该可以解决。

我的直觉是,你正在使用的可能在提供同样的事情,导致冲突和意外行为多个插件。 这就是为什么我倾向于远离“提供一切”的插件了,并改用做一两件事,一件事做好的插件。 在你的情况,这可能意味着使用更简单,更可预见的插件完全一样的Open Graph:

https://wordpress.org/plugins/complete-open-graph/



文章来源: Wordpress All In One SEO plugin not sharing to Facebook wall