I have a chunk of content that I load via AJAX and on that page I have a FBML share button. I also tried it without the FBML and just use the hyperlink and script tag. When I load the content directly, the share button loads fine, but when I load it via AJAX, the button doesn't show up. Any ideas on how to get the FB Share button working?
+2
A:
I believe you need to invoke FB.XFBML.Host.parseDomTree() after your content has been inserted. This will cause the Facebook JS libraries to scan for XFBML tags and render them.
zombat
2009-12-02 03:39:20
awesome, thanks - you answered this in 4 minutes!
Rob Volk
2009-12-02 04:46:31
A:
It appears that this command has been updated to FB.XFBML.parse()
talentedmrjones
2010-05-12 05:39:44