You are here

public function FacebookAuthManager::setSdk 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::setSdk()
  2. 8 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::setSdk()
  3. 8.2 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::setSdk()
  4. 8.3 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::setSdk()
  5. 8.4 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::setSdk()
  6. 8.6 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::setSdk()
  7. 8.7 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::setSdk()
  8. 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_facebook

Code

public function setSdk($sdk) {
  if (!$sdk instanceof Facebook) {
    throw new InvalidArgumentException('SDK object should be instance of \\Facebook\\Facebook class');
  }
  $this->sdk = $sdk;
}