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>