Facebook Open Graph OG:和FB:标签无法正常工作或注册



我有一个网站,我想拥有一个诸如按钮之类的Facebook,并定制按钮,以显示特定的图片,描述等。

所有这些都完成了,但是我使用了常规的IMG,描述,标题元标记,而不是我们应该使用的OG标签。

Facebook抱怨我在网站上使用http://developers.facebook.com/tools/debug。

这是一些错误消息:

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

和其他所有标签...

这是一个问题:当我确实添加和配置标签时,如网络上提供的示例所示,它不仅不起作用,而且还会收到另一个错误:

Meta Tags In Body:  You have tags ouside of your . This is either because
your 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.

这是我的HTML配置:

<html lang="en"  xmlns:fb="http://www.facebook.com/2008/fbml"
xmlns:og="http://opengraphprotocol.org/schema/">

...

<meta property="og:url" content="..." />
<meta property="og:site_name" content="..." />
<meta property="og:type" content="..." />
<meta property="og:title" content="..." />
<meta property="og:image" content="..." />
<meta property="og:description" content="..." />
<meta property="fb:app_id" content="..." />

...

注意:我的fb-root标签和其他fb所提供的诸如按钮代码与另一个脚本一起在页面的底部。

注意:我在Open Graph的网站或Facebook开发人员的Facebook开放图部分上进行了零配置,但是我认为这不是一个问题,因为在FB的说明中,他们说要添加类似只需要复制/粘贴代码,并且不需要实际的打开图配置。

这是网站URL:http://darehut.com注意:我的标签代码实际上位于我来源的头部元素内,但是无论出于何种原因,它们都会在外面渲染!

感谢您的帮助!

身体中的元标记:您的标签是您的标签。这是因为 您的畸形,它们在解析树上跌倒,或者您不小心 将您的打开图标签放在错误的位置。

该消息在第一个阶段之前缺少<head>

这是什么意思,很简单:要么将OG元标记放在<head>元素之外,要么将HTML畸形。


下次您提出这样的问题时,请在您遇到麻烦的文档中包含URL - 这样,我们可以自己看看它,我们可以更具体地回答。/p>

最新更新