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 …

    Avatar photo[anonymous]

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

    Avatar photo[anonymous]

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


    <script async defer crossorigin=”anonymous” src=”; nonce=”XuZ6N5rN”></script>

    Avatar photo[anonymous]

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


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