Facebook comments box not showing

2019-08-29 10:38发布

For some reason facebook comment box appears on my web articles only after I refresh the article page although it was working correctly few days ago:

The website is: http://metallica-gr.net/ , each article contains facebook comments on the bottom of the page.

Any ideas?

SOLUTION:

So I pasted the comments script right before closing instead of right after openning it like it was recommended by Facebook and now it's working again. Not sure why that happened though since it was working fine, probably it conflicts with some other script?(although I didn't add anything to my website).

2条回答
冷血范
2楼-- · 2019-08-29 10:58

So I pasted the comments script right before closing </body> instead of right after openning it like it was recommended by Facebook and now it's working again. Not sure why that happened though since it was working fine, probably it conflicts with some other script?(although I didn't add anything to my website).

查看更多
可以哭但决不认输i
3楼-- · 2019-08-29 11:10

I use jquery to show the facebook comment box:

<div id="fb-root"></div>
<script>
    $(document).ready(function () {
        (function (d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (d.getElementById(id)) return;
            js = d.createElement(s); js.id = id;
            js.src = "//connect.facebook.net/he_IL/all.js#xfbml=1";
            fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));
    });
</script>
查看更多
登录 后发表回答