I have a problem with loading facebook comments. Well, I’m using the Qawker theme. When I have integrated the facebook comments on my blog, it works for permalinks but the comment form will not show on ajax loaded page/post.
Here’s the URL of my blog: http://itnotes.tk/.
I see that facebook comments are URL sensitive and may not load when using ajax on a site, but my question is that: How would I be able to make the facebook comments load along with the ajax loaded content?
Help would be highly appreciated…Thank you!
I think that this post is old but anyway may be is useful for the next readers.
If you want load “new comments” with ajax, you should run again the code that load the Facebook library and modify the data-href for the container (Facebook Comments Div). One simple example of code is this:
This run with ajax action and the response is the Facebook comments div with the new “data-href”.
Call the â FB.XFBML.parse() â explicitly inside the AJAX success function, which will re-parse the html and render the Facebook comments section
use this –