FirstName and LastName field are not being used in 4.x branch

Created on 3 July 2023, over 1 year ago
Updated 27 July 2023, over 1 year ago

Problem/Motivation

This is exactly same like Issue #3368712 🐛 FirstName and LastName field are not being used in 4.x branch Fixed of social_auth_google module.

In 3.x branch of social_auth_facebook module, FacebookAuthManager::getUserInfo() used to return the user object of type League\OAuth2\Client\Provider\FacebookUser.

In 4.x, FacebookAuthManager::getUserInfo() now returns a user object of type Drupal\social_auth\User\SocialAuthUser

On accessing getFirstName() and getLastName() from that user object, it used to return the required values from league/oauth2-facebook library in 3.x, whereas, in 4.x it returns null, since its not being set.

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇮🇳India Supreetam09 Kolkata

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024