WordPress.org

Forums

Simple Facebook Connect
FB login for comments not working (12 posts)

  1. fawnfritzen
    Member
    Posted 2 years ago #

    I went and edited my comments PHP file as described in the FAQs, but that didn't help. It didn't make sense to me, anyway, putting in '< and '> marks -- aren't those HTML things and not PHP?

    http://wordpress.org/extend/plugins/simple-facebook-connect/

  2. fawnfritzen
    Member
    Posted 2 years ago #

    (You can tell I'm a PHP n00b. :P )

    But still, I did add the three lines as instructed, and it didn't change anything....

  3. Samuel Wood (Otto)
    WordPress.org Tech Dude
    Plugin Author

    Posted 2 years ago #

    Make sure your theme includes both the wp_head() and wp_footer() calls properly. Run it through the "Theme Check" plugin to see if it's broken in any way.

    If the theme isn't normal, then it won't adapt properly.

  4. fawnfritzen
    Member
    Posted 2 years ago #

    Well, I got a beautiful long PAGE full of "RECOMMENDED", "WARNING", and "INFO", but neither the head or footer calls appeared. I'm stumped.

    Argh. If I have to install and reconfigure a new theme, I will cry for sure. :P

  5. Samuel Wood (Otto)
    WordPress.org Tech Dude
    Plugin Author

    Posted 2 years ago #

    Can you post a link to a page where you would expect to see the comments button, but don't?

  6. fawnfritzen
    Member
    Posted 2 years ago #

    Here's a blog post I wrote yesterday. I've checked the "Allow FB Login to Comment (for non-registered users)" box on the SFC Settings page...

    http://fawnfritzen.com/i-thought-about-you/

  7. Samuel Wood (Otto)
    WordPress.org Tech Dude
    Plugin Author

    Posted 2 years ago #

    That page doesn't have any of the Facebook code on it in either the footer or in the comment form.

    So, check the theme's footer.php and make sure there is a call to wp_footer() before the ending </body>, and make sure you added the relevant three lines to the proper place in the comments.php file.

  8. fawnfritzen
    Member
    Posted 2 years ago #

    Ahhhhh, I thought it was a global thing. Okay, I'll go give that a try.

  9. fawnfritzen
    Member
    Posted 2 years ago #

    Sorry, I re-read what you wrote and see that it IS global. Documenting my steps to potentially help out others...

    In the Dashboard editor I found footer.php and could see that there's a call to wp_footer(). Header.php contains a called to wp_head().

    Now the comment.php file... I had to go to the file manager of my web host to look for this, as it's not available from the WP Dashboard. I realize that the php file edited yesterday was NOT the comment.php file. That one was called wp-comments-post.php and was in my public_html directory.

    I found comment.php in the wp-admin folder... but there are a whole bunch of switches relating to comment editing and moderation and nothing about any input fields. So I haven't a clue about where to put the lines of code I'm supposed to insert.

    Then I found ANOTHER comment.php file in the wp-includes folder. But I can't find input fields there, either.

    Then I went looking down in the Theme folder (where I found header.php and footer.php), but no comment.php.

    I found comments.php in a subfolder of the wp-includes folder, and it has a coded comment that the file is there for backwards compatibility. When I edited that, the "Connect with Facebook" button appeared!

    It still doesn't seem to work the way I'd expect, though. The button is there, it asks for my Facebook password, etc., but then I still have to fill out the name and e-mail fields... and it doesn't seem to actually connect to Facebook.

  10. Samuel Wood (Otto)
    WordPress.org Tech Dude
    Plugin Author

    Posted 2 years ago #

    Okay, all the files I told you to look at should be in your theme. Nowhere else. Nor should you be editing any files outside of your theme.

    It sounds like your theme is incomplete. If you're missing the comments.php file in the theme, then yes, WordPress will use that backwards compatible one, but no modern theme (made in the last 3-4 years) should be missing that file. How old is this theme?

    Also, I think you edited the file wrong, because the behavior you're describing is clearly not right.

    At this point, my only remaining suggestion would be to get a better and more recent theme and use that instead of your current theme.

  11. fawnfritzen
    Member
    Posted 2 years ago #

    The theme is supposedly brand-new (Radiant from Make Design), but it's based on their "Skeleton" suite of themes, so I guess it's got legacy "bones". No pun intended. (But ha!)

    Thanks for all your time Otto. I'm sorry it's been a wild goose chase. Argh.

  12. Samuel Wood (Otto)
    WordPress.org Tech Dude
    Plugin Author

    Posted 2 years ago #

    Before giving up, make sure it isn't really a plugin issue. Try switching to the default theme, and see if the plugin works there.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic