public function FacebookAuthManager::setSdk in Open Social 8.2
Same name and namespace in other branches
- 8.9 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::setSdk()
- 8 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::setSdk()
- 8.3 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::setSdk()
- 8.4 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::setSdk()
- 8.5 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::setSdk()
- 8.6 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::setSdk()
- 8.7 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::setSdk()
- 8.8 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::setSdk()
Set instance of SDK.
Parameters
object $sdk: SDK instance.
Return value
mixed Returns mixed.
Overrides AuthManagerInterface::setSdk
File
- modules/
custom/ social_auth_facebook/ src/ FacebookAuthManager.php, line 29
Class
- FacebookAuthManager
- Class FacebookAuthManager.
Namespace
Drupal\social_auth_facebookCode
public function setSdk($sdk) {
if (!$sdk instanceof Facebook) {
throw new InvalidArgumentException('SDK object should be instance of \\Facebook\\Facebook class');
}
$this->sdk = $sdk;
}