SEO Facebook Comment
iframe not pulling through (2 posts)

  1. __JoshWhite
    Posted 3 years ago #


    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.



  2. __JoshWhite
    Posted 3 years ago #


    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>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • SEO Facebook Comment
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic