javascript - facebook social plug-in not showing up when added dynamically -


i adding facebook social plug in webpage

when manually add :

<div class="fb-comments" data-href="http://website.com/z" data-width="700" data-numposts="7" data-colorscheme="light"></div> 

it works , , when javascript code add , doesn't

any ideas ?

the js sdk goes through document once when initialized, such elements parse social plugins. if want parse content add document later, need call fb.xfbml.parse().

https://developers.facebook.com/docs/reference/javascript/fb.xfbml.parse/


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -