Wordpress All In One SEO插件未共享到Facebook Wall [英] Wordpress All In One SEO plugin not sharing to Facebook wall

查看:78
本文介绍了Wordpress All In One SEO插件未共享到Facebook Wall的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前是基于All In One SEO插件在我的页面(wordpress)上实现Facebook的OpenGRaph协议的.

I use to implement Facebook's OpenGRaph protocol on my pages (wordpress) based on All In One SEO plugin.

每页:

<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开发人员调试进行检查时,出现了这些错误:

But i get these error when checking with Facebook developer debug:

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开放图错误-推断的属性

但是我没有任何解决方案.您有解决此问题的方法吗?

But I don't have any solution. Have your solution for this problem?

推荐答案

由于您的初始链接的图像问题现已解决,因此很难说出问题出在哪里,尤其是由于您提供的代码段看起来不错.但是,使用您提供的后一个链接,我会收到此错误:

Since your initial link's image issue is now fixed, it's difficult to say what was wrong with it, especially since the snippet you provided seems fine. With the latter link you provided, though, I'm getting this error:

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

这是因为页面上没有明确的og:description标记.

This is because there isn't an explicitly og:description tag available on the page.

不相关的人:我注意到重复的twitter:card和相关标签.这不应导致打开图"不起作用,但应予以解决.

Someone unrelated: I'm noticing duplicate twitter:card and related tags. This shouldn't cause Open Graph to not work, but should be resolved.

我的直觉是您正在使用可能提供相同功能的多个插件,从而导致冲突和意外行为.这就是为什么我倾向于远离提供全部"插件,而使用能一劳永逸的插件的原因.在您的情况下,这可能意味着使用更简单,更可预测的插件,例如Complete Open Graph:

My hunch is that you're using multiple plugins that might be providing the same thing, causing clashes and unexpected behavior. This is why I tend to stay away from "provide it all" plugins, and instead use plugins that do one thing and one thing well. In your case, this might mean using a simpler, more predictable plugin like Complete Open Graph:

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

这篇关于Wordpress All In One SEO插件未共享到Facebook Wall的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆