I have a page where the english version facebook’s like button is loaded by default. I can only manipulate the page with javascript and don’t have access to certain things, i.e. facebook script. So, how can I have that like button translated into another language, say spanish? Thanks.
Share
It’s going to be extremely difficult – there isn’t a ‘nice’ way to do it. This is because the like button lives inside an iframe, and you can’t access the contents of it from within your page, with javascript or anything else.
You can manipulate the iframe’s
srcattribute – check the facebook documentation to see if you can pass in a language parameter – something like:&lang=eson the end of the URL.Updated – the URL parameter is locale, as in: &locale=es_ES