I have a grails application with meta og tags like this:
<meta property="og:description" content="${message(code:'description')}"/>
The message properties works fine for i18n if the user’s browser send the request. But in case of Facebook it is different. Facebook seems to request alwas the en_US version on my page which means that the meta og tags are always in the wrong language if the user requests the page from a de_DE browser.
Is there a way to tell facebook to use a different request language than en_US?
I tried:
<meta property="og:locale" content="de_DE" />
but this does not change the requested language as well.
What can I do to get the correct i18n?
If you setup some
og:locale:alternatemeta tag, Facebook will rescrape the page by passing agetparameterfb_localewith the value of the locale. For example, if your site ishttp://mysite.com/shareand it present these alternative locales:Facebook will call these url on your site.
You then just need to localize you content (and set
og:locale) correctly.Doc is here: https://developers.facebook.com/docs/technical-guides/opengraph/internationalization/