Social Login: email address is already used

This topic contains 10 replies, has 3 voices, and was last updated by  Jeff Adams 5 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #2101

    Jeff Adams
    Buyer
    Post count: 1780

    When logged out and loggin in using the facebook social login icon button in the WP Login Widget I am brought to a page displaying:

    An error occurred while creating a new user: Sorry, that email address is already used!

    at url: https://veganlinked.com/?action=uwp_social_authenticated&provider=Facebook

    It’s as if the FB Login button is trying to register instead of login?

    Will someone please help me resolve this.

    On the “Social Login” page I wasn’t sure what to do with “Facebook APP Callback URL” as I don’t believe the documentation mentions it. So I tried without using that and I got the same error occurred message.

    I then tried adding “Facebook APP Callback URL” to my “Valid OAuth Redirect URIs” on the Social Login page. That did not work either.

    Then I tried changing “embedded browser OAuth Login” to “Yes” because someone online said that helped a similar problem. That didn’t fix error.

    #2102

    Jeff Adams
    Buyer
    Post count: 1780
    This reply has been marked as private.
    #2106

    Guust
    Moderator
    Post count: 29970

    Did you review https://userswp.io/docs/social-login-setup/#facebook ?

    Are you trying to login or register?

    You cannot test registration with an email that is already a user on your site and the facebook email.

    #2107

    Jeff Adams
    Buyer
    Post count: 1780

    I thought I was just trying to login. It doesn’t show an option or qualify what it is.

    If I’m not logged doesn’t social “login” through the facebook icon attempt to “log in” and if you’re not already a user then take you to the registration page?

    #2108

    Jeff Adams
    Buyer
    Post count: 1780

    Actually, I followed the instructions on the “Social Login” where it says:

    First go to: https://developers.facebook.com/apps
    Select Add a New App from the Apps menu at the top.
    Fill out Display Name, Namespace, choose a category and click Create App
    Go to Settings page and click on Add Platform. Choose website and enter in the new screen your website url in App Domains and Site URL fields. They should match with the current hostname veganlinked.com
    Go to the Status & Review page and choose yes where it says Do you want to make this app and all its live features available to the general public?
    Go back to the Dashboard page and past the created application credentials (APP ID and Secret) into the boxes above.
    And that’s it!

    I took “that’s it” literally in regard to instructions. It didn’t link to the page you’re suggesting. I’ll try that. It would have really helped if it linked to the documentation.

    #2109

    Jeff Adams
    Buyer
    Post count: 1780

    I had went through all this
    https://userswp.io/docs/category/getting-started/
    Then got to the plugin instructions and when that didn’t work I came here.

    #2110

    Jeff Adams
    Buyer
    Post count: 1780

    It’s working now. Thanks Guust, I feel like I should have found that. man, I wasted some time on that hung up on those instructions on the plugin. That really messed me up. Someone will probably benefit from having a link to those more accurate instructions instead of those instructions on the plugin 🙁

    Thanks Guust, at least it seems to be good now 🙂

    #2112

    Guust
    Moderator
    Post count: 29970

    Great!

    #2130

    Jeff Adams
    Buyer
    Post count: 1780

    Thanks again,

    one thing I noticed kind of weird is the UWP username and the actual facebook “username” are not the same.

    on facebook the username is also your “pretty url”. what you use for logging in also your username. In my case my facebook username and pretty url is neofilm. when i use UWP it wants to use Jeff_Adams as my username and pretty url. this inconsistency is likely to cause confusion as it already did with me.

    When I had “Let the user enter username?” selected and “Let the user enter email?” I became confused when i was using the social log in. Because my username is not Jeff_Adams but that was what UWP decided it was all the sudden (it seems to be using the “Nickname”). So, I put “neofilm” and this worked in that it was now my UWP username and pretty URL. However, the next time I tried to use the social login I of course had to start all over with the signup process or type in my new username. Essentially this defeats the purpose of having a easy social login.

    If I turn off allowing the user to change username then they’re forced into a URL that they may not at all like. Also, if the user didn’t create a username and just used the default UWP (nickname that they may not have none even happened) then they may not know how to sign in.

    I guess it doesn’t use the same password as the user uses on facebook either. Because I tried logging in without UWP and I couldn’t, didn’t know the password it seems even though I know my facebook password. This may be a security thing. So, that’s probably fine I suppose…

    I’m just not sure this is how other sites use social login. At least I have never noticed the username not being the same when using social login on other sites…

    #2136

    Alex Rollin
    Moderator
    Post count: 27815

    Normally ‘pretty urls’ should be built form a username which is entered by the user into the app at the point of registration.

    Usually, when an app gets info from FB, it does not request the FB ‘pretty url’ but instead asks the user for a username. That is my experience.

    There is a complex FB userID that is not made visible by every app but is used in the database to match users up (Is this the same user? Ah yes, the FB ID matches, ok then). It is that ID which is used to match users, not the name or even the email in most cases.

    I would recommend still allowing username. For those ‘in the know’ they will take that as a hint to reserve their pretty URL.

    #2143

    Jeff Adams
    Buyer
    Post count: 1780

    Ok, I guess you’re right, I’ll just leave it as you suggest. Thanks!

Viewing 11 posts - 1 through 11 (of 11 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket