SOCIAL LOGIN NOT PASSING EMAIL

  • In Progress
    Posted in: Fundingpress  
  • Member
    thetimothyjr2155
    March 14, 2016 at 11:11 pm #78559

    The social login with facebook, twitter, and gmail all don’t return the email of the user, but intead something like “10024@randomsocialuser.rnd” instead of giving a real email. I see that in functions.php you have this code here:

    $userdata = array( ‘user_email’ => $newuid.”@randomsocialuser.rnd”,
    ‘user_login’ => $login,
    ‘nickname’ => $_SESSION[‘social_user’][‘name’],
    ‘first_name’ =>$_SESSION[‘social_user’][‘name’],
    ‘display_name’ => $_SESSION[‘social_user’][‘name’],
    ‘rich_editing’ => true,
    ‘role’ => ‘contributor’
    );
    $new_user_id = wp_insert_user( $userdata ); // A new user has been created

    How can i fix this so that the social login options actually return a valid email that can be used on the website?
    Kind regards,
    Tim

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.