You are here

public function OpenIDConnectFacebookClient::getEndpoints in OpenID Connect / OAuth client 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/OpenIDConnectClient/OpenIDConnectFacebookClient.php \Drupal\openid_connect\Plugin\OpenIDConnectClient\OpenIDConnectFacebookClient::getEndpoints()

Returns an array of endpoints.

Return value

array An array with the following keys:

  • authorization: The full url to the authorization endpoint.
  • token: The full url to the token endpoint.
  • userinfo: The full url to the userinfo endpoint.

Overrides OpenIDConnectClientInterface::getEndpoints

1 call to OpenIDConnectFacebookClient::getEndpoints()
OpenIDConnectFacebookClient::retrieveUserInfo in src/Plugin/OpenIDConnectClient/OpenIDConnectFacebookClient.php
Retrieves user info: additional user profile data.

File

src/Plugin/OpenIDConnectClient/OpenIDConnectFacebookClient.php, line 72

Class

OpenIDConnectFacebookClient
Facebook OpenID Connect client.

Namespace

Drupal\openid_connect\Plugin\OpenIDConnectClient

Code

public function getEndpoints() : array {
  return [
    'authorization' => 'https://www.facebook.com/' . $this->configuration['api_version'] . '/dialog/oauth',
    'token' => 'https://graph.facebook.com/' . $this->configuration['api_version'] . '/oauth/access_token',
    'userinfo' => 'https://graph.facebook.com/' . $this->configuration['api_version'] . '/me',
  ];
}