Facebook English syntax

On the website I'm testing, I have a few common buttons (using a plugin) across various social networks.

The Facebook button seems to get a language shortcut from the language the user uses on their Facebook. Since the website has most of the visitors from Greece, some of them have their settings in English and some in Greek, when the Share shortcut is written in Greek it pushes all other buttons to a different line, resulting in an ugly layout.

Is there a way to force Facebook to always use the English Share button? any workarounds or hacks? I can't think of it now ... Any help would be greatly appreciated! :)

+3


source to share


1 answer


https://developers.facebook.com/docs/plugins/share-button

If you are using the Share plugin, you can simply change the locale in the SDK url. This is the line of code:



js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=xxx&version=v2.0";

      

Just change "en_US" to something else valid. For example, German would be "de_DE".

+4


source







All Articles