views:

1404

answers:

2

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
awesome, thanks - you answered this in 4 minutes!
Rob Volk
A: 

It appears that this command has been updated to FB.XFBML.parse()

talentedmrjones