zanematthew / zm-ajax-login-register

Creates a simple login and register modal with an optional shortocde
GNU General Public License v2.0
15 stars 19 forks source link

Facebook Login #149

Open alongtin83 opened 8 years ago

alongtin83 commented 8 years ago

Is there a way to use the users facebook info as there username and personal data to there user account

dianakolnik commented 8 years ago

The fields that are mapped from Facebook login are: first name, last name, email, and website (facebook profile url).

What else where you looking to pull in? -Di

jordanfan20 commented 8 years ago

I'm running into the same problem I think the OP is. Although all these things are mapped

$user = array( 'username' => $_POST['fb_response']['id'], 'user_login' => $_POST['fb_response']['id'], 'first_name' => $_POST['fb_response']['first_name'], 'last_name' => $_POST['fb_response']['last_name'], 'email' => $_POST['fb_response']['email'], 'user_url' => $_POST['fb_response']['link'], 'fb_id' => $_POST['fb_response']['id'] );

The only thing actually saving is the facebook id as the users username.

pakoman07 commented 7 years ago

Did you figure this out? I'm having the same issue.