How to Add Multiple og:locale Tags in Shack Open Graph Pro

Documentation for Joomla 3

If you have a multi-lingual Joomla site, you may want to make its content in every language to be Facebook-friendly.

You achieve this with the Shack Open Graph Pro Joomla plugin by enabling Facebook's og:locale tag for every language.

Here is how:

  • In your Joomla administrator panel, go to "Extensions" > "Plugins":

go to extensions plugins

  • This will bring you to the "Plugins" screen, as you can see on the next image. Click "System - Shack Open Graph Pro":

click shack open graph

  • You will see the "Plugins: System - Shack Open Graph Pro" page. Click the "Open Graph" tab:

click the open graph tab

  • At the bottom of the page, find the "Include Locale" parameter and click "Yes":

click yes

  • Click "Save" and check the HTML source code of your Joomla site.
  • You will see the og:locale tag displayed now, but only for the default language:

og locale tag for the default language only

  • To include the og:locale Facebook tag for other languages, click inside the "Selected Locales" field:

click inside the selected locales field

  • Click on the required language, as you can see on the next image:

click on the required language

  • Click "Save" or "Save & Close".
  • Check the HTML source code of your site. You will see the additional og:locale tag for your selected language displayed:

the additional og locale tag displayed

Documentation for Joomla 4

If you have a multi-lingual Joomla site, you may want to make its content in every language to be Facebook-friendly.

You achieve this with the Shack Open Graph Pro Joomla plugin by enabling Facebook's og:locale tag for every language.

Here is how:

  • In your Joomla 4 administrator dashboard, go to "System" > "Manage" > "Plugins":

go to system manage plugins

  • This will bring you to the "Plugins" screen, as you can see in the next image. Click "System - Shack Open Graph Pro":

click system shack open graph

  • You will see the "Plugins: System - Shack Open Graph Pro" page. Click the "Facebook" tab and set the "Include Locale" parameter to "Yes":

the facebook tab and the select locale parameter

  • Click "Save" and check the HTML source code of your Joomla site.
  • You will see the og:locale tag displayed now, but only for the default language:

the locale tag for the default language

  • To include the og:locale Facebook tag for other languages, select required languages inside the "Selected Locales" field:

additional language selected

  • Click "Save" or "Save & Close".
  • Check the HTML source code of your site. You will see the additional og:locale tag for your selected language displayed:

the additional og locale tags displayed in the html source code