• Resolved ten_nom

    (@virtualnomad)


    Hello, Social login (Facebook and Google) uses only the “first name” and not the “last name” in Buddypress “full name”(displayname) field. Also, it uses only the first name when generating “username” and slug. So when more than one “John” registers on a website, it generates the username as follows: “John-1” “John-2” “John-3”, etc.
    I’ve tested it on various social network accounts, but the problem persists. Where could be the problem? What should I change in the source code? ?? Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Heateor Support

    (@heateor)

    Hi,

    You can change it according to your needs at line number 211 in the file wp-content/plugins/super-socializer/inc/social_login.php until we take care of it in the upcoming updates.

    Thread Starter ten_nom

    (@virtualnomad)

    Thanks a lot, it works. These values are optimal for BP users:

    $userdata = array(
    		'user_login' => $username,
    		'user_pass' => $password,
    		'user_nicename' => $username,
    		'user_email' => $profileData['email'],
    		'display_name' => $profileData['name'],
    		'nickname' => $username,
    		'first_name' => $firstName,
    		'last_name' => $lastName,
    		'description' => isset($profileData['bio']) && $profileData['bio'] != '' ? $profileData['bio'] : '',
    		'user_url' => $profileData['provider'] != 'facebook' && isset($profileData['link']) && $profileData['link'] != '' ? $profileData['link'] : '',
    		'role' => get_option('default_role')
    	);
    Plugin Author Heateor Support

    (@heateor)

    Okay. We will take care of these in the upcoming updates.

    thanks friends

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Social login – FULL NAME problem’ is closed to new replies.