Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Initialize Facebook like button post page load and script execution

So I have a like button on my page which loads fine when the script is executed in the bottom of the page. The problem is that I have an Ajax based popout which renders some HTML that also has the like button. How can I initialize that?

I've tried putting same script, but it doesn't get executed.

Is there a way to explicitly call any method to initialize the button?

like image 885
Daniyal Avatar asked Feb 07 '12 19:02

Daniyal


1 Answers

FB.XFBML.parse() will do the trick

like image 136
DMCS Avatar answered Nov 09 '22 16:11

DMCS