Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Beginner 28 posts 78 karma points
    Oct 30, 2013 @ 12:01
    Beginner
    0

    Problems with facebook comment plugin

    Hi everyone. I am not sure this is the right forum.

    I have added the facebook comment plugin to a site 3 weeks ago with out any problems. https://developers.facebook.com/docs/plugins/comments/ But no it has stopped working. My guess is that is something in the data-href="" that is not right. If I add a hardcoded url i can get it to work.

    Hope someone has a good solution for this :)

    My code for the plugin

     <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/da_DK/all.js#xfbml=1";
        fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
            <div class="fb-comments" data-href="<umbraco:Item field='pageID' xslt='umbraco.library:NiceUrl({0})' runat='server'/>" data-colorscheme="light" data-numposts="5" data-width="650"></div>
    
  • Beginner 28 posts 78 karma points
    Oct 30, 2013 @ 12:03
    Beginner
    100

    my script<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/da_DK/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>

  • Beginner 28 posts 78 karma points
    Oct 30, 2013 @ 12:28
    Beginner
    0

    This is not solved yet

  • Dani 1 post 21 karma points
    Nov 01, 2013 @ 08:47
    Dani
    0
    1. JKT48 Yeah
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies