Open Graph Locale & i18n PropertyOptional

og:locale

The og:locale property identifies the language and region of your content using the language_TERRITORY format.

Tag Syntaxproperty="og:locale"
Recommended Size / Limitlanguage_TERRITORY (e.g. en_US)
Protocol RequirementOptional / Recommended

HTML Code Example

<meta property="og:locale" content="en_US" />
<meta property="og:locale:alternate" content="es_ES" />

Best Practices

  • Format as language_TERRITORY (e.g. en_US, fr_FR, es_ES, de_DE).
  • Use og:locale:alternate tags to declare available translations for international visitors.
  • Pair with HTML hreflang tags for complete international SEO.

Platform Rendering Rules

FacebookRenders localized titles and descriptions based on user language settings.

Common Implementation Pitfalls

  • Using language only (e.g. "en") instead of language_TERRITORY ("en_US").
  • Hyphenating locale strings (e.g. "en-US") instead of using underscores.