我的页面中有一组 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 被识别为有效类型,但随后被忽略(并假定为网站)。
任何人都知道发生了什么。