[resolved] Facebook AND wordpress comments (9 posts)

  1. Frannie1977
    Posted 4 years ago #

    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?


  2. CodeArt
    Posted 4 years ago #

    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' );
  3. Matt Kelly (Facebook)
    Plugin Contributor

    Posted 4 years ago #

    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!

  4. Frannie1977
    Posted 4 years ago #

    @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... ;-)

  5. Frannie1977
    Posted 4 years ago #

    @Matt, I'd love to, but have no clue on how to move a discussion... ;-s

  6. LuboUzunov
    Posted 4 years ago #

    @codeart: Thank you! It works :)

  7. cuytherock
    Posted 3 years ago #

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

  8. vishnudath
    Posted 3 years ago #

    @codeart Thanks a lot.

    but how to do this in Facebook 1.1.3

  9. fciotola
    Posted 3 years ago #

    @codeart Thanks a lot.

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Facebook
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.