Object Debugger gives me Extraneous Property And Inferred Property error on opg

拈花ヽ惹草 提交于 2019-12-08 08:13:06

问题


I have everything right in my header. I followed the Dev Doc for adding my location and address to my header but I get these warnings. Can someone tell me what I am doing wrong?

Extraneous Property Objects of this type do not allow properties named og:language.
Extraneous Property Objects of this type do not allow properties named og:email.
Extraneous Property Objects of this type do not allow properties named og:phone_number.
Extraneous Property Objects of this type do not allow properties named og:fax_number.
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:street-address.
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.
Inferred Property   The og:locale property should be explicitly provided, even if a value can be inferred from other tags.

回答1:


now facebook require you to add og:locale to meta tag too

they just require when they announce new open graph beta

<meta property="og:locale" content="fr_FR" />  

http://developers.facebook.com/docs/beta/opengraph/internationalization/




回答2:


The link in your comment doesn't spit out any errors. Were you putting old Meta tags on your page?




回答3:


i have same problem try to read this http://developers.facebook.com/docs/beta/opengraph/internationalization/

use this

<meta property="og:locale" content="en_us" />
<meta property="og:locale:alternate" content="ar_ar" /> <!-- optional -->


来源:https://stackoverflow.com/questions/7563538/object-debugger-gives-me-extraneous-property-and-inferred-property-error-on-opg

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!