K
K
kosfed2011-11-27 17:27:15
Facebook
kosfed, 2011-11-27 17:27:15

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

2 answer(s)
K
kosfed, 2011-11-27
@kosfed

decided.
solution here www.juev.ru/2010/12/26/facebook-comments/

W
wizion, 2016-01-09
@wizion

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 question

Ask a Question

731 491 924 answers to any question