Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Open Graph locale for Australia

Tags:

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.

like image 495
Brett Avatar asked Oct 10 '11 01:10

Brett


People also ask

What is OG locale?

og:locale – defines the language; American English is the default. og:site_name – if the page (object) you are sharing is part of a larger network. og:audio or og:video – to add additional audio or video files to your object. fb:app_id – for linking to a Facebook application (e.g., FB Comments) with the object.

What is meta OG URL?

Open Graph meta tags are snippets of code that control how URLs are displayed when shared on social media. They're part of Facebook's Open Graph protocol and are also used by other social media sites, including LinkedIn and Twitter (if Twitter Cards are absent). You can find them in the <head> section of a webpage.

Is og URL required?

You do not ever need og:url . Instead, use the existing rel=canonical standard to link to your canonical page URL. Facebook's own documentation states they support this [1].

What is Facebook Open Graph tags?

Facebook's OpenGraph metadata allows users to share web pages on Facebook. If you add OpenGraph meta tags to your posts and pages, Facebook will display a preview with images and an excerpt when a link to your site is shared.


1 Answers

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.

like image 52
Ben Graham Avatar answered Sep 24 '22 08:09

Ben Graham