【问题标题】:open graph tags - type=location. Not verifiying打开图形标签 - 类型=位置。不验证
【发布时间】:2012-05-14 18:12:34
【问题描述】:

我的页面中有一组 og 元标记。当我转到 Facebook 调试器并给它报告的 URL 时:

Meta Tag <meta property="og:type" content="landmark" />
Meta Tag <meta property="og:locale" content="en_GB" />
Meta Tag <meta property="og:latitude" content="51.5410881042" />
Meta Tag <meta property="og:longitude" content="-0.145712554455" />
Meta Tag <meta property="og:locality" content="London" />
Meta Tag <meta property="og:region" content="Greater London" />
Meta Tag <meta property="og:postal-code" content="NW1 7HY" />
Meta Tag <meta property="og:country-name" content="United Kingdom" />

但是返回一个对象属性:

og:类型网站

然后抱怨:

Extraneous Property Objects of this type do not allow properties named 'og:latitude'.
Extraneous Property Objects of this type do not allow properties named 'og:longitude'.
Extraneous Property Objects of this type do not allow properties named 'og:locality'.
Extraneous Property Objects of this type do not allow properties named 'og:region'.
Extraneous Property Objects of this type do not allow properties named 'og:postal-code'.
Extraneous Property Objects of this type do not allow properties named 'og:country-name'.

如果我输入一个愚蠢的 og:type,比如“beercan”,它会将其报告为无效的 og 类型。因此,Landmark 被识别为有效类型,但随后被忽略(并假定为网站)。

任何人都知道发生了什么。

【问题讨论】:

  • Facebook 似乎贬低了 og:type 地标。谁能确认这是否属实? Facebook 文档毫无用处。

标签: facebook facebook-opengraph meta-tags


【解决方案1】:

我刚刚查看了开放图形协议的 rdf(http://ogp.me/ns),您上面提到的所有这些标签确实都有以 [DEPRECIATED] 开头的注释。似乎所有最初包含并在其他本体中定义的标签现在都已贬值。例如。纬度也在http://www.w3.org/2003/01/geo/wgs84_pos#lat 中定义。 我在尝试查找“og:upc”对象时遇到了这个问题,该对象现在也已折旧。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-04-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-09-01
    • 2016-08-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多