Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter __JoshWhite

    (@_joshwhite)

    Hi,

    I found the answer to this if anyone is interested.

    The SEO Facebook Comments plugin usually brings through the fb-root code (as below), but in my case it wasn’t. Whether this was due to a clash with another WordPress plugin, or another instance of a Facebook plugin ‘using’ the code I’m not sure.

    Anyway, I added the fb-root code right above <?php comments_template( ”, true ); ?> in the single.php template and its fixed it.

    Not the neatest method, but seems to work…

    Here’s the fb-root code, which you get when creating a facebook like button:

    <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/en_GB/all.js#xfbml=1&appId=206960046101341”;
    fjs.parentNode.insertBefore(js, fjs);
    }(document, ‘script’, ‘facebook-jssdk’));</script>

Viewing 1 replies (of 1 total)