Different languages ​​for me, like a button

How to display text of Like button in another language with HTML5 script?

+6
source share
2 answers

When you initialize fb-jssdk

<div id="fb-root"></div> <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 = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> 

change js.src url for your locale

+8
source

Go to http://developers.facebook.com/docs/reference/plugins/like/ and search for "How do I display the Like button in different languages?"

+1
source

Source: https://habr.com/ru/post/911031/


All Articles