If you really need to call init more than once, you can do this:
FB._initialized = false; FB.init();
but it doesn't make sense to me, I have a slightly different problem, but it is also related to the FB.init has already been called - this could indicate a problem message. FB.init has already been called - this could indicate a problem .
I have an AJAX-based website where, after each page load, I need to display XFBML from the HTML that I get from the AJAX request (comments like a button and more):
<div class="fb-comments" data-href="{REMOVED}" data-num-posts="5" data-width="760" colorscheme="dark"></div>
To do this, you can run this when you need to display XFBML:
FB.XFBML.parse();
Dmitriy Eroshenko May 02 '12 at 19:38 2012-05-02 19:38
source share