WordPress.org

Ready to get started?Download WordPress

Forums

Problems with Facebook Comments on my site (2 posts)

  1. do77
    Member
    Posted 2 years ago #

    Hi,

    I have added Facebook Comments to my site but I am not entirely sure if I did it right. When I leave a comment with my own FB account the comment shows up and the count works. But I also tried to leave comments with two dummy accounts and those will not show up after I have logged out and the count also does not work.

    I was thinking that the problem is caused by the fact that I am not using a XID. Is that a possibility?

    Here is how I did it:

    Header.php
    <html <?php language_attributes(); ?> xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">

    and
    <meta property="fb:app_id" content="MY_ID">

    After <body> tag

    <div id="fb-root"></div>
    <script>
      window.fbAsyncInit = function() {
        FB.init({appId: 'MY_ID', status: true, cookie: true,
                 xfbml: true});
      };
      (function() {
        var e = document.createElement('script'); e.async = true;
        e.src = document.location.protocol +
          '//connect.facebook.net/de_DE/all.js';
        document.getElementById('fb-root').appendChild(e);
      }());
    </script>

    Single.php
    <fb:comments href="<?php the_permalink() ?>" num_posts="25" width="546"></fb:comments>

    Any idea what causes the problems?

    Thanks,
    do77

  2. do77
    Member
    Posted 2 years ago #

    So I double-checked everything and I actually don't think that integrated facebook comments wrong. But I actually figured out that when I leave a comment with my dummy account on sites that use the older version (v1) of FB comments they are visible even after logout. The problem is related to the new version of fb comments.

    Does anyone know if the privacy settings have anything to do with that?

Topic Closed

This topic has been closed to new replies.

About this Topic