public function FacebookAuthManager::setAccessToken in Open Social 8.5
Same name and namespace in other branches
- 8.9 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::setAccessToken()
- 8 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::setAccessToken()
- 8.2 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::setAccessToken()
- 8.3 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::setAccessToken()
- 8.4 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::setAccessToken()
- 8.6 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::setAccessToken()
- 8.7 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::setAccessToken()
- 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_facebookCode
public function setAccessToken($access_token) {
$this->sdk
->setDefaultAccessToken($access_token);
}