Initialize Facebook like button post page load and script execution
Asked Answered
Y

1

8

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?

Yoke answered 7/2, 2012 at 19:12 Comment(0)
C
21

FB.XFBML.parse() will do the trick

Coppersmith answered 7/2, 2012 at 19:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.