WordPress.org

Ready to get started?Download WordPress

Forums

Simple Facebook Connect
[resolved] Login Not Working (Beta) (25 posts)

  1. joyv
    Member
    Posted 2 years ago #

    Hi everyone,

    I just installed the beta version of the SFC plugin and love it but unfortunately the login button does not work for me.

    If I am logged out of FB before trying it looks as if it is going to login me in using my FB credentials but then only takes me back to the login page and does not proceed anywhere else.

    If I am already logged into FB it doesn't do anything.

    http://www.purelygraphics.com/client/parish/wp-login.php

    Am I missing something where I need to setup where the page redirects to when you login?

    Also, Is there a widget to add a Connect button in the sidebar?

    Thanks!Joy

  2. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    The login page is supposed to refresh, and the act of refreshing will log you in.

    Do you have javascript disabled, or have any weird browser extensions that might be screwing it up?

  3. joyv
    Member
    Posted 2 years ago #

    No, Is it functioning properly when you try it?

    I'll test on 3 more computers when I get home from the office to make sure it isn't just here.

    What page should you be taken to upon login?

  4. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    Yes, it works fine for me on test sites.

    The way it should work is as follows:

    1. You attempt to go to any page which needs authentication, like /wp-admin. The wp-login.php loads instead (this is normal WordPress).

    2. You click the FB login button. If you're not logged into FB, you get the popup. If you are, then the popup appears but probably immediately disappears.

    3. After logging into FB, the wp-login.php page reloads. At this point, SFC kicks in on the back end and recognizes that you have FB credentials in your cookies.

    4. The cookies are parsed and your Facebook ID is determined. If your ID is already connected to an existing WP account, then you're logged in as that account. Else, your email from Facebook is checked and a WP user is found with the same email, and you are then logged in as that user. Either way, you're directed to wherever you were headed before (like /wp-admin for example), because you're now logged in as far as WP cares.

    5. If you have no ID or email match, the login page loads and displays the message: "Cannot log you in. There is no account on this site connected to that Facebook user identity."

  5. joyv
    Member
    Posted 2 years ago #

    It seems the login isn't working as it should. I can register perfectly but the login doesn't do anything.

    After clicking the login button and the facebook connect screen/window pops up the page refreshes and then nothing, back to the login page.

    I try to go directly to the profile page by typing in the url but because I am not actually logged in it doesn't work.

    Can you test the registration then login function? I will be able to see your account was created in the dashboard.

    Joy

  6. joyv
    Member
    Posted 2 years ago #

    I'm going to have to deactivate the plugin for now so that I may test other items.

    I'll turn it back on asap.

  7. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    You have modified it somehow, because it's asking for *way* too many permissions there. All it really needs is the email permission.

  8. joyv
    Member
    Posted 2 years ago #

    testing a different plugin now. This one seems to get the job done...i think...lol

    Its a complicated setup I am trying to make work with facebook, subscription, shopping cart, avatars, and on, and on.

  9. rupya
    Member
    Posted 2 years ago #

    hi otto , it works perfectly as you say in my site , but the thing is i want where if you are not a registere user , it shld take the facebook email id and approve you to register through that it self and just login from there , is there a facility like that .

  10. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    Yes, that's there. Just turn on the register function.

  11. luke.a.danielson
    Member
    Posted 2 years ago #

    Hey there Otto. I have the registration turned on, in addition to the login module, and it still gives me the "no account on this site" message...

    Any ideas?

    Thanks!

    -Luke

  12. luke.a.danielson
    Member
    Posted 2 years ago #

    I believe I figured it out. The general blog setting "Anyone Can Register" must be checked in order for the plugin to register a user.

    I had it unchecked and that's why it wasn't working.

    Just FYI for anyone who comes across this...

    -Luke

  13. webcomm10
    Member
    Posted 2 years ago #

    If a user isn't previously registered on the site, is there anyway to avoid the registration process? This seems to be what rupya and luke implied. I don't see it working that way.

    I think SFC requires a user to go through registration (which is aided by filling in the form through SFC), then they can login. Or do I have it wrong?

    I would like them to login with no registration step. If they are not registered, capture the email, create an account and log them in. Can it do that?

  14. ryangetz
    Member
    Posted 2 years ago #

    webcomm10, i think i am looking for what you described as well.

    did you figure anything out?

    i want:
    new user visits site and click on Connect With Facebook or whatever and it then recognizes that they are already logged into facebook and seamlessly creates them a wordpress account. They do nothing. No checking their email for a password or anything. They just click connect, it does its thing then redirects them back to the hompage and shows that they are connected (maybe the profile pic displays somewhere?)

    thats my idea. How can we do this?

  15. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    SFC explicitly does not do that. I eliminated the transparent registration mechanism, and very likely will not be adding it back in. Essentially, it's confusing to the user because they're creating an account on the site and passing personal information without knowing it. I don't like it when websites do that sort of thing to me.

  16. webcomm10
    Member
    Posted 2 years ago #

    The Facebook authorization screen makes it clear that the site can email the user via their personal email at anytime.

    However, I can see your point and I respect your opinion. Thanks for an awesome plugin.

  17. gdaniels99
    Member
    Posted 2 years ago #

    SFC explicitly does not do that. I eliminated the transparent registration mechanism, and very likely will not be adding it back in. Essentially, it's confusing to the user because they're creating an account on the site and passing personal information without knowing it.

    This is silly. The whole reason to add a Facebook login to a website is so the user does NOT have to go through a registration process. But SFC requires that you first register BEFORE you can connect via your Facebook account. Who the heck is going to jump through that many hoops just to be able to login via Facebook?

    I tried signing in with Facebook and got the same error everyone was getting. There was absolutely NOTHING intuitive about what had gone wrong. It was only after doing a google search that I found this thread and figured out the problem. No user, or very few, will bother trying to figure it out. They see a Facebook Login, they click it thinking they can sign in to your website without going through a registration process. If that doesn't work, they'll simply move on. I doubt 1 in a million would be upset that this process registered them with your website especially since the Facebook prompts clearly state you are passing your email address to the website. In fact, I bet most people actually think they ARE registering with your website when they sign in through Facebook.

    Just my two cents. The Facebook Connect plugin provides this functionality and I've already deactivated SFC. It also provides a Facebook login button as a sidebar widget which bizarrely SFC doesn't do.

  18. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    But SFC requires that you first register BEFORE you can connect via your Facebook account.

    No, it doesn't. The register module of SFC both registers you for the site and connects the account to FB all at once. It's following the recommended method by Facebook to do so.

    If you wish to use some other plugin, then by all means, feel free.

  19. bruinpress
    Member
    Posted 2 years ago #

    So Otto, is there an official way to use SFC with WP-Members? I'll let people register on my site first, then add their FB account (which seems to be the workflow you're saying FB corporate endorses, despite being a bit cumbersome). Unfortunately it seems SFC is somehow incompatible with WP-Members...

    In a perfect world I'd like a way to have users signup entirely via Facebook (meaning they don't need to actually type any of their info again, they just need to approve the Connect), and I'd like to have the option of requiring admin approval of users (just like WP-Members).

  20. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    As I stated before, the register module built into SFC both registers a new user and directly links their account to Facebook in one step.

    The screenshot shows this rather clearly, I think:

    http://s.wordpress.org/extend/plugins/simple-facebook-connect/screenshot-6.png?r=487325

    The registration mechanism used for this is actually the built-in WordPress mechanism. All SFC does is to intercept the FB data from their registration widget and convert it so the normal mechanism can see it properly. So unless another plugin changes how that bit works in some major way, it's compatible with everything.

  21. bruinpress
    Member
    Posted 2 years ago #

    So I wasn't aware that SFC allowed admins to gatekeep the signups, which is a fairly important step. Also, and I confess I don't think I was clear about this in my other post, I'd prefer users don't have passwords just for the WP install. I'd like the *only form of auth* to be FB. Anyway, thanks for pointing out that aspect of SFC.

  22. harsha52
    Member
    Posted 2 years ago #

    Hi otto,

    I am unable to login through Fb, i entered all the credentials and clicked on login with facebook it throws an error

    "ERROR: Cannot log you in. There is no account on this site connected to that Facebook user identity."

    Please help me i am stumped :(

    Thanks
    Harsha

  23. supersuphot
    Member
    Posted 2 years ago #

    Thanks @gdaniels99. I got the same question until found this post. make me waste time to find why it not connect and login at one click.

    @Otto you should describe clearly how the login does. Like you have to register first (with facebook register form) so that you can use login function.

  24. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    You don't have to register first with the Facebook register form. If you already have an account on the site, then login normally, go to your profile page, and link your FB account with your WP account.

    If you don't have an account at all, then yes, you have to register first, via some method.

  25. supersuphot
    Member
    Posted 2 years ago #

    Thanks @Otto. I sure it does. It just not I'm looking for. Thanks again for the great plugin.

    ** now I move to http://www.sociable.es/facebook-connect/
    - it does what expect now, just click facebook login button, it will create new accoutnt if not have one. Don't have to register or setup password at all. I will use your facebook username as login name and you can login anytime when facebook.com is logged in.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic