I'd like to refresh dynamically a fb:like plugin into my page.
For exemple, into index.html, I have :
<fb:like id="fbtest" href="http://www.urltest.com" send="true" width="450" show_faces="true"></fb:like>
(Facebook is initialized, and all works perfectly.)
Then, I'l like to change dynamically the URL of this like button. So, with jQuery, I do :
$('#fbtest').attr('href', 'http://www.urltest2.com').empty().off().removeData();
FB.XFBML.parse();
And it's doesn't work... It only work when I remove the fb:like tag, and recreate it (exactly the same DOM !).
As you can see here: Update FB:Like URL Dynamically using JavaScript , All methods described recreates the fb:like tag... I need to refresh an existing fb:like... not recreate it. Is it possible ?
EDIT : Here's a fiddle for testing :-) : http://jsfiddle.net/nRTkS/
Thanks!