Definition at line 39 of file OAuth2Client.php.
◆ __construct()
◆ debugToken()
Facebook\Authentication\OAuth2Client::debugToken |
( |
|
$accessToken | ) |
|
◆ getAccessTokenFromCode()
Facebook\Authentication\OAuth2Client::getAccessTokenFromCode |
( |
|
$code, |
|
|
|
$redirectUri = '' |
|
) |
| |
Get a valid access token from a code.
- Parameters
-
string | $code | |
string | $redirectUri | |
- Returns
- AccessToken
- Exceptions
-
Definition at line 159 of file OAuth2Client.php.
◆ getAuthorizationUrl()
Facebook\Authentication\OAuth2Client::getAuthorizationUrl |
( |
|
$redirectUrl, |
|
|
|
$state, |
|
|
array |
$scope = [] , |
|
|
array |
$params = [] , |
|
|
|
$separator = '&' |
|
) |
| |
Generates an authorization URL to begin the process of authenticating a user.
- Parameters
-
string | $redirectUrl | The callback URL to redirect to. |
string | $state | The CSPRNG-generated CSRF value. |
array | $scope | An array of permissions to request. |
array | $params | An array of parameters to generate URL. |
string | $separator | The separator to use in http_build_query(). |
- Returns
- string
Definition at line 135 of file OAuth2Client.php.
◆ getClientParams()
Facebook\Authentication\OAuth2Client::getClientParams |
( |
| ) |
|
|
protected |
Returns the client_* params for OAuth requests.
- Returns
- array
Definition at line 285 of file OAuth2Client.php.
◆ getCodeFromLongLivedAccessToken()
Facebook\Authentication\OAuth2Client::getCodeFromLongLivedAccessToken |
( |
|
$accessToken, |
|
|
|
$redirectUri = '' |
|
) |
| |
◆ getLastRequest()
Facebook\Authentication\OAuth2Client::getLastRequest |
( |
| ) |
|
◆ getLongLivedAccessToken()
Facebook\Authentication\OAuth2Client::getLongLivedAccessToken |
( |
|
$accessToken | ) |
|
Exchanges a short-lived access token with a long-lived access token.
- Parameters
-
- Returns
- AccessToken
- Exceptions
-
Definition at line 178 of file OAuth2Client.php.
◆ requestAnAccessToken()
Facebook\Authentication\OAuth2Client::requestAnAccessToken |
( |
array |
$params | ) |
|
|
protected |
◆ sendRequestWithClientParams()
Facebook\Authentication\OAuth2Client::sendRequestWithClientParams |
( |
|
$endpoint, |
|
|
array |
$params, |
|
|
|
$accessToken = null |
|
) |
| |
|
protected |
Send a request to Graph with an app access token.
- Parameters
-
string | $endpoint | |
array | $params | |
AccessToken | string | null | $accessToken | |
- Returns
- FacebookResponse
- Exceptions
-
FacebookResponseException | |
Definition at line 261 of file OAuth2Client.php.
◆ $app
Facebook\Authentication\OAuth2Client::$app |
|
protected |
◆ $client
Facebook\Authentication\OAuth2Client::$client |
|
protected |
◆ $graphVersion
Facebook\Authentication\OAuth2Client::$graphVersion |
|
protected |
◆ $lastRequest
Facebook\Authentication\OAuth2Client::$lastRequest |
|
protected |
◆ BASE_AUTHORIZATION_URL
const Facebook\Authentication\OAuth2Client::BASE_AUTHORIZATION_URL = 'https://www.facebook.com' |
The documentation for this class was generated from the following file: