Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

How to add facebook comments

  • #3726
    Avatar photo[anonymous]

    Hello! I’m trying to add code for comments from Facebook but it doesn’t work.

    Where do I have to add the code to work for each page separately?

    Thanks …

    #3771
    Avatar photo[anonymous]

    Tools -> Custom HTML -> check if you have tab “After every post” – if yes, you can put there facebook comments code 🙂

    #3774
    Avatar photo[anonymous]

    How to change the url address to display correctly for each post?

    Example:

    <script async defer crossorigin=”anonymous” src=”https://connect.facebook.net/bg_BG/sdk.js#xfbml=1&version=v8.0&#8243; nonce=”XuZ6N5rN”></script>

    #3775
    Avatar photo[anonymous]

    I suppose that the only way is create script tag dynamically and use window.location to get a proper URL

    e.g:

    var scr = document.createElement(‘script’);
    scr.setAttribute(‘src’, window.location.href + ‘/test.js’);
    document.body.appendChild(scr);