This is my code :
Just call to FB.XFBML.parse after adding XFBML elements to page.
XFBML
You can also specify root node in which the XFMBL tags will be parsed.
XFMBL