public function FacebookLinkController::linkAccount in Open Social 8
Same name and namespace in other branches
- 8.9 modules/custom/social_auth_facebook/src/Controller/FacebookLinkController.php \Drupal\social_auth_facebook\Controller\FacebookLinkController::linkAccount()
- 8.2 modules/custom/social_auth_facebook/src/Controller/FacebookLinkController.php \Drupal\social_auth_facebook\Controller\FacebookLinkController::linkAccount()
- 8.3 modules/custom/social_auth_facebook/src/Controller/FacebookLinkController.php \Drupal\social_auth_facebook\Controller\FacebookLinkController::linkAccount()
- 8.4 modules/custom/social_auth_facebook/src/Controller/FacebookLinkController.php \Drupal\social_auth_facebook\Controller\FacebookLinkController::linkAccount()
- 8.5 modules/custom/social_auth_facebook/src/Controller/FacebookLinkController.php \Drupal\social_auth_facebook\Controller\FacebookLinkController::linkAccount()
- 8.6 modules/custom/social_auth_facebook/src/Controller/FacebookLinkController.php \Drupal\social_auth_facebook\Controller\FacebookLinkController::linkAccount()
- 8.7 modules/custom/social_auth_facebook/src/Controller/FacebookLinkController.php \Drupal\social_auth_facebook\Controller\FacebookLinkController::linkAccount()
- 8.8 modules/custom/social_auth_facebook/src/Controller/FacebookLinkController.php \Drupal\social_auth_facebook\Controller\FacebookLinkController::linkAccount()
Response for path 'social-api/link/facebook'.
Redirects the user to Facebook for joining accounts.
1 string reference to 'FacebookLinkController::linkAccount'
- social_auth_facebook.routing.yml in modules/
custom/ social_auth_facebook/ social_auth_facebook.routing.yml - modules/custom/social_auth_facebook/social_auth_facebook.routing.yml
File
- modules/
custom/ social_auth_facebook/ src/ Controller/ FacebookLinkController.php, line 46
Class
- FacebookLinkController
- Class FacebookLinkController.
Namespace
Drupal\social_auth_facebook\ControllerCode
public function linkAccount() {
$sdk = $this
->getSdk();
if ($sdk instanceof RedirectResponse) {
return $sdk;
}
$this->authManager
->setSdk($sdk);
$url = $this->authManager
->getAuthenticationUrl('link');
return new TrustedRedirectResponse($url);
}