Answer the question
In order to leave comments, you need to log in
Installing Facebook comments widget in DLE?
Faced a problem. Unable to embed comment widget on site.
That is, it turns out, but if I write a comment in one post, then it is visible in others. I replaced the url with this {full-link} code, it doesn't work at all.
Has anyone experienced this?
Answer the question
In order to leave comments, you need to log in
Here is my solution:
<div class="fb socialnetwork">
<div id="fb-root"></div>
<script>(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/ru_RU/sdk.js#xfbml=1&version=v2.5&appId=YOUR_APP_ID";
fjs.parentNode.insertBefore(js, fjs);
jQuery('.fb-comments').attr('data-href',window.location.href.toString);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-comments" data-numposts="10"></div>
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question