You are here

public function FacebookAuthManager::setAccessToken in Open Social 8.7

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

Set access token to AuthManager to use it for API calls.

Parameters

mixed $access_token: Access token to use in API calls.

Return value

null Returns null.

Overrides AuthManagerInterface::setAccessToken

File

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

Class

FacebookAuthManager
Class FacebookAuthManager.

Namespace

Drupal\social_auth_facebook

Code

public function setAccessToken($access_token) {
  $this->sdk
    ->setDefaultAccessToken($access_token);
}