Facebook Open Graph locale for Australia

南楼画角 提交于 2019-12-04 16:45:27

问题


I am trying to add the og:locale tag for an Australian website and Facebook's linter tells me that I have an error.

Based on the documentation (and assuming what the correct content should be), I have added this to my page head:

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

Facebook's linter ( http://developers.facebook.com/tools/debug ) tells me:

Object Invalid Value Object at URL 'http://foo' of type 'website' is invalid because the given value 'en_au' for property 'og:locale:locale' could not be parsed as type 'enum'.

What's going on here? Is en_AU not the correct code for australia? I also tried en_AUS and that didn't work either. If i change it to en_US it works fine.


回答1:


See FB's i18n documentation for help. More specifically there is a complete list of supported locales. Unfortunately Australian English isn't awesome enough to be considered as a separate thing; you'll be choosing between UK and US English.



来源:https://stackoverflow.com/questions/7707648/facebook-open-graph-locale-for-australia

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