【发布时间】: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