Facebook Open Graph区域设置为澳大利亚 [英] Facebook Open Graph locale for Australia

查看:156
本文介绍了Facebook Open Graph区域设置为澳大利亚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为澳大利亚网站添加og:locale标签,而Facebook的linter告诉我有错误。

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的linter( http://developers.facebook.com/tools/debug )告诉我:

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

对象无效值
网站类型的网址 http:// foo 上的对象无效,因为给定值en_au属性og:区域设置:区域设置无法解析为类型枚举。

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'.

这里发生了什么? en_AU是否不是澳大利亚的正确代码?我也试过en_AUS,也没有工作。

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.

推荐答案

请参阅FB的 i18n documentation 的帮助。更具体地说,有一个完整的支持的区域设置。不幸的是,澳大利亚英语不是很棒,被认为是一个单独的事情;您将选择英国和美国英语。

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.

这篇关于Facebook Open Graph区域设置为澳大利亚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆