public function FacebookAuthManager::getAccountId in Open Social 8.6
Same name and namespace in other branches
- 8.9 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getAccountId()
- 8 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getAccountId()
- 8.2 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getAccountId()
- 8.3 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getAccountId()
- 8.4 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getAccountId()
- 8.5 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getAccountId()
- 8.7 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getAccountId()
- 8.8 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getAccountId()
Returns an account ID on a social network.
Return value
int|string The account ID on a social network.
Overrides AuthManagerInterface::getAccountId
File
- modules/
custom/ social_auth_facebook/ src/ FacebookAuthManager.php, line 172
Class
- FacebookAuthManager
- Class FacebookAuthManager.
Namespace
Drupal\social_auth_facebookCode
public function getAccountId() {
if ($profile = $this
->getProfile()) {
return $profile
->getField('id');
}
}