Support » Plugins and Hacks » [Plugin: SEO Facebook Comment] iframe not pulling through

[Plugin: SEO Facebook Comment] iframe not pulling through

  • Hi,

    This plugin is amazing – I have it working on one of my blogs perfectly, so thanks for that:


    However, I have tried to implement it into two other blogs, one of which is built on an almost identical template as my working blog:


    As you can see from the above example, on each single post, the SEO Facebook Comments code is pulling through, but the iframe containing facebook comments etc isn’t.

    I have no idea why this won’t work, as I have set it up in exactly the same manor as my first attempt.

    Any help would be much appreciated.



Viewing 1 replies (of 1 total)
  • __JoshWhite



    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)
  • The topic ‘[Plugin: SEO Facebook Comment] iframe not pulling through’ is closed to new replies.