You are here

public function FacebookAuthManager::getAuthenticationUrl in Open Social 8.5

Same name and namespace in other branches
  1. 8.9 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getAuthenticationUrl()
  2. 8 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getAuthenticationUrl()
  3. 8.2 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getAuthenticationUrl()
  4. 8.3 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getAuthenticationUrl()
  5. 8.4 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getAuthenticationUrl()
  6. 8.6 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getAuthenticationUrl()
  7. 8.7 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getAuthenticationUrl()
  8. 8.8 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getAuthenticationUrl()

Returns the login URL where user will be redirected for authentication.

Parameters

string $type: Type of action. "login" or "register".

array $scope: List of permissions which should be asked during authentication.

Return value

string Absolute URL.

Overrides AuthManagerInterface::getAuthenticationUrl

File

modules/custom/social_auth_facebook/src/FacebookAuthManager.php, line 40

Class

FacebookAuthManager
Class FacebookAuthManager.

Namespace

Drupal\social_auth_facebook

Code

public function getAuthenticationUrl($type, array $scope = [
  'public_profile',
  'email',
]) {
  $helper = $this->sdk
    ->getRedirectLoginHelper();
  return $helper
    ->getLoginUrl($this
    ->getRedirectUrl($type), $scope);
}