public function FacebookAuthManager::getUserInfo in Social Auth Facebook 8.2
Same name and namespace in other branches
- 8 src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getUserInfo()
- 3.x src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getUserInfo()
File
- src/
FacebookAuthManager.php, line 51
Class
- FacebookAuthManager
- Contains all the logic for Facebook OAuth2 authentication.
Namespace
Drupal\social_auth_facebookCode
public function getUserInfo() {
if (!$this->user) {
$this->user = $this->client
->getResourceOwner($this
->getAccessToken());
}
return $this->user;
}