I am trying to have multiple headings and descriptions for the same endpoint, one for each language.
Trying to follow this documentation: https://developers.facebook.com/docs/opengraph/guides/internationalization#objects
I have a server that detects when the client is a bot, for example facebook bot, and it displays a single file with a name and description metafile and the following localization metadata. I have a file for each language, and I set og: locale depending on the localization of fb_locale that I get on the request pages.
meta(property="og:locale" content="en_gb") meta(property="og:locale:alternate" content="es_es") meta(property="og:locale:alternate" content="it_it")
How can I use multiple languages โโfor the same endpoint? This is my test application and the endpoint I'm trying to translate: https://webapp-server-21b.herokuapp.com/marcp
It seems that it scans it correctly, but does not display the preview in the language that I expect when I share it on FB or in the facebook debugger.
If I do:
curl -X POST -F "id=https://webapp-server-21b.herokuapp.com/marcp" -F "scrape=true" -F "locale=en_gb" "https://graph.facebook.com" -s
or
curl -X POST -F "id=https://webapp-server-21b.herokuapp.com/marcp" -F "scrape=true" -F "locale=es_es" "https://graph.facebook.com" -s
I get the expected header in the corresponding expected language, but when I share on facebook or in the debugger, it is always in English, by default.
Thanks!
source share