You are here

public function FacebookAuthManager::authenticate in Social Auth Facebook 8

Same name and namespace in other branches
  1. 8.2 src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::authenticate()
  2. 3.x src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::authenticate()

Authenticates the users by using the access token.

Return value

$this The current object.

File

src/FacebookAuthManager.php, line 90

Class

FacebookAuthManager
Contains all Simple FB Connect logic that is related to Facebook interaction.

Namespace

Drupal\social_auth_facebook

Code

public function authenticate() {
  $this->client
    ->setDefaultAccessToken($this
    ->getAccessToken());
  return $this;
}