Facebook comments not showing up in Comment Moderation Tool

Discussion in 'Facebook' started by Pathan, Oct 12, 2012.

  1. #1
    Hello,

    I added facebook comments system to my website, what I can see is its working perfectly on site I mean you can post a comment, my site is dynamic so I have done some modifications to the code, I will show you what I have done up till now:


    in <head> tag I have added the following:

    
    <meta property="fb:app_id" content="app id here" />
    <meta property="fb:admins" content="{admin profile id}"/>
    
    Code (markup):
    and just when <body> tag starts I added the following:

    
    <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_US/all.js#xfbml=1&appId=my app id is here";
    fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    
    Code (markup):
    where I want to show the comments to appear I added the following code:

    <?PHP
    $currentlink = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
    echo "<fb:comments href='$currentlink' num_posts='10' width='600'></fb:comments>";
    ?>
    PHP:
    Now the issue is I can't see any comments in Facebook comments moderation tool located at: http://developers.facebook.com/tools/comments

    I have created the App ID, everything seems to be done properly, Please help me if you know the solution.

    -Regards.
     
    Pathan, Oct 12, 2012 IP