This is my code :
Just call to FB.XFBML.parse after adding XFBML
elements to page.
You can also specify root node in which the XFMBL
tags will be parsed.
This should do the job:
FB.XFBML.parse( document.getElementById("newFBContent"), function() {
//plugin rendered
});
You should call FB.XFBML.parse after you've added the new content to the DOM.
You missed one line, try:
$('#addNewLink').click(function () {
$('#newFBContent').html('<fb:like href="http://www.facebook.com" send="false" layout="button_count" width="auto" show_faces="true" font="" ></fb:like>')
//and parse
FB.XFBML.parse(document.getElementById('newFBContent'));
});