Try putting this in your functions.php:
//This action is called whenever Social Login adds a new user
add_action (‘oa_social_login_action_after_user_insert’, ‘oa_social_login_store_extended_data’, 10, 2);
function oa_social_login_store_extended_data ($user_data, $identity)
{
error_log (print_r ($identity, true)); // to get all fields.
//Example to store the billing first name:
update_user_meta ($user_data->id, ‘billing_first_name’, $identity->name->givenName);
update_user_meta ($user_data->id, ‘billing_last_name’, $identity->name->familyName);
}
//Set custom roles for new users
function oa_social_login_set_new_user_role ($user_role)
{
//This is an example for a custom setting with one role
$user_role = ‘customer’;
//The new user will be created with this role
return $user_role;
}
//This filter is applied to the roles of new users
add_filter(‘oa_social_login_filter_new_user_role’, ‘oa_social_login_set_new_user_role’);