This topic has 8 replies, 2 voices, and was last updated 9 years by sharmstr.

  • Author
  • #85395
     Startup10
    Participant

    Hello, I did a test using facebook to login to my website. The problem is that it creates a duplicate member entry for myself. Is there a way to configure the facebook login/register so that it does not create duplicate member pages for people who have already signed up via email?

    #85411
     sharmstr
    Moderator

    Does both of the accounts use the same email address?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #86056
     Startup10
    Participant

    Hello, no they use different email addresses, I have to disable Facebook login because it will cause too many problems for members signing-up and/or logging-in by creating too many unnecessary duplicate profile pages.

    #86061
     sharmstr
    Moderator

    What version of Kleo? Have you looked for plugin conflicts?

    The odd thing is that buddypress wont let you sign up using a duplicated email address using their registration form.

    Kleo’s facebook code checks for it as well. Here’s the important part of the code

    COPY CODE
    
    
    if( !$user_ID ){  
     
    //we didnt have a user id that matched a previously facebook registration, so lets compare the fb email to any email found in wordpress
    
    $user_email = $FB_userdata['email'];
    $user_ID = $wpdb->get_var( "SELECT ID FROM $wpdb->users WHERE user_email = '".$wpdb->escape($user_email)."'" 
    );
    
     //Register user
            if( !$user_ID )
            // we didnt find a matching email, so now we are going to register the user.
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #86079
     Startup10
    Participant

    No, the email addresses I used are different. So the way facebook integration works is if any person has a different facebook email to the email they use to register on the site, it will create a duplicate profile for them. This is a big problem.

    #86084
     sharmstr
    Moderator

    I miss read your other response. Sorry.

    So how would you identify that the user already has an account? It needs to be specific to them and the only thing I know of is an email address. You cant do it by name. You cant do it by IP address.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #86085
     sharmstr
    Moderator

    BTW – You can always disable Facebook registration and enable facebook login. That way the users that do use the same email address can log in either way, using one account.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #86090
     Startup10
    Participant

    Sorry, you’ve totally lost me now. I know because I tested this myself, my facebook email is different to the email on the website, when I log-in using facebook, it doesn’t log me into my existing profile, it creates a new one – so there are two profiles for the same person, with slightly different urls. If a person signs up vial email, and later decides to log-in via facebook, if the emails are not the same it will create duplicate member profiles.

    #86091
     sharmstr
    Moderator

    But you can turn off facebook registration and still allow people to sign in (notice I said in and not up) with their facebook account. Their email addresses would have to match.

    Theme Options > Misc > Facebook Integration: On
    Theme Options > Misc > Enable Registration via Facebook: Off

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

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

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?