Mobile app version of vmapp.org
Login or Join
Ravi8258870

: Facebook "Share" and "Like" buttons always in English even when I specify another language I'm displaying the Facebook share button on my website, but it always displays in English, even though

@Ravi8258870

Posted in: #Facebook #Internationalization #Multilingual #SocialSharingButtons

I'm displaying the Facebook share button on my website, but it always displays in English, even though I followed the guidelines for using another language.

Here's my code:

<script>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/de_DE/sdk.js#xfbml=1&appId=149263621911030&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));




As you can see, I want to have the text for the button in German, but it displays in English anyway.

Here's the funny part: If I substitute sdk.js with all.js which, according to Facebook, is deprecated, everything works fine. This is true for at least Swedish, German and Danish, which are the only ones I've tested so far.

Should I be doing something differently to get things to work with the recommended sdk.js, or did Facebook just ditch support for other languages than English in the latest version?

For completeness, the part where I display the Share-button looks like this:

<div class="fb-share-button" data-href="http://adrdangerousgoods.com/ger/" data-width="250" data-layout="button_count"></div>

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Ravi8258870

1 Comments

Sorted by latest first Latest Oldest Best

 

@Megan663

David L says in How can the language of the Facebook "like" button be changed?:


... the language pointed out in the URL, is for the DEFAULT language of the text. However, if a person has her/his Facebook account already open, such setting is superseded by the default language of THE ACCOUNT'S language. But that will change according to each individual's own settings, which is a desirable behavior.


So while you are specifying the default language for the button, it is always coming up as English for you because you are signed into Facebook with an account set to English as the preferred language. To test it, use private browsing so that it can't access your Facebook account.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme