Support » Plugins and Hacks » [Resolved] Facebook AND wordpress comments

[Resolved] Facebook AND wordpress comments

  • I started using a Facebook Comments plugin (not made by Facebook itself) a while ago. It stopped working because the app ID I created on FB was no longer valid. No other plugin except the original FB plugin works now (the original FB plugin has no problem validating the app ID, which makes me wonder by the way).

    Now I’d love to use the original FB plugin, if I can figure out how to: combine facebook comments and the original wordpress comments in one post, as not all the readers of my blog are FB users.

    Anyone knows how to?


Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi Frannie,

    I had the same problem, i couldn’t find a way to do it from the plugin back-end so i went to have a look at the code and i think i fixed it for me. I cant notice anything wrong so here it is how you can do it.

    Go to the plugin folder and into the social-plugins subfolder.
    You will see the fb-social-plugins.php file there, download it through your FTP client and open it in any text editor (you can use even notepad but i recommend using at least notepad++)

    You will just need to comment two lines that are actually blocking the default wordpress comments.

    They are lines 46 and 48 and here is how my file looks like now with commented lines.

    if ( array_key_exists( 'comments', $options ) && array_key_exists( 'enabled', $options['comments'] ) && $options['comments']['enabled'] ) {
    add_filter( 'the_content', 'fb_comments_automatic', 30 );
    //add_filter( 'comments_array', 'fb_close_wp_comments' );
    add_filter( 'the_posts', 'fb_set_wp_comment_status' );
    //add_action( 'wp_enqueue_scripts', 'fb_hide_wp_comments' );
    add_filter( 'comments_number', 'fb_get_comments_count' );
    Plugin Contributor Matt Kelly (Facebook)


    We’re aggregating all comments feedback in http://wordpress.org/support/topic/plugin-facebook-comments-suggestions?replies=68. Do you mind posting this there? Thanks!

    @codeart – sorry for the delay! Just got the opportunity to alter the code, I actually did it using /wp-admin and didn’t need to use the FTP files. It works!!! I am really happy so thanks for sharing the tip. Anyone reading this, the change in the code has to do with adding // on two lines. It took me a while to find the changes… 😉

    @matt, I’d love to, but have no clue on how to move a discussion… ;-s

    @codeart: Thank you! It works 🙂

    Thanks a lot. That’s what I’ve been looking for.

    @codeart Thanks a lot.

    but how to do this in Facebook 1.1.3

    @codeart Thanks a lot.

    yes the problem now is how to do this in Facebook 1.1.3

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Facebook AND wordpress comments’ is closed to new replies.