public function TwitterAuthManager::getAccessToken in Open Social 8.8
Same name and namespace in other branches
- 8.9 modules/custom/social_auth_twitter/src/TwitterAuthManager.php \Drupal\social_auth_twitter\TwitterAuthManager::getAccessToken()
- 8 modules/custom/social_auth_twitter/src/TwitterAuthManager.php \Drupal\social_auth_twitter\TwitterAuthManager::getAccessToken()
- 8.2 modules/custom/social_auth_twitter/src/TwitterAuthManager.php \Drupal\social_auth_twitter\TwitterAuthManager::getAccessToken()
- 8.3 modules/custom/social_auth_twitter/src/TwitterAuthManager.php \Drupal\social_auth_twitter\TwitterAuthManager::getAccessToken()
- 8.4 modules/custom/social_auth_twitter/src/TwitterAuthManager.php \Drupal\social_auth_twitter\TwitterAuthManager::getAccessToken()
- 8.5 modules/custom/social_auth_twitter/src/TwitterAuthManager.php \Drupal\social_auth_twitter\TwitterAuthManager::getAccessToken()
- 8.6 modules/custom/social_auth_twitter/src/TwitterAuthManager.php \Drupal\social_auth_twitter\TwitterAuthManager::getAccessToken()
- 8.7 modules/custom/social_auth_twitter/src/TwitterAuthManager.php \Drupal\social_auth_twitter\TwitterAuthManager::getAccessToken()
Reads user's access token from social network.
Parameters
string $type: Type of action. "login" or "register".
Return value
object User's access token, if it could be read from social network. Null, otherwise.
Overrides AuthManagerInterface::getAccessToken
File
- modules/
custom/ social_auth_twitter/ src/ TwitterAuthManager.php, line 58
Class
- TwitterAuthManager
- Manages the authorization process before getting a long lived access token.
Namespace
Drupal\social_auth_twitterCode
public function getAccessToken($type) {
// This method should not used for Twitter.
return NULL;
}