PHP Class FacebookOAuthService

Inheritance: extends EOAuth2Service
Afficher le fichier Open project: nodge/yii-eauth

Protected Properties

Свойство Type Description
$client_id
$client_secret
$jsArguments
$name
$providerOptions
$scope
$title
$type

Méthodes protégées

Méthode Description
fetchAttributes ( )
fetchJsonError ( stdClass $json ) : array Returns the error info from json.
getAccessToken ( $code )
getCodeUrl ( $redirect_uri )
getTokenUrl ( $code )
saveAccessToken ( array $token ) Save access token to the session.

Method Details

fetchAttributes() protected méthode

protected fetchAttributes ( )

fetchJsonError() protected méthode

Returns the error info from json.
protected fetchJsonError ( stdClass $json ) : array
$json stdClass the json response.
Résultat array the error array with 2 keys: code and message. Should be null if no errors.

getAccessToken() protected méthode

protected getAccessToken ( $code )

getCodeUrl() protected méthode

protected getCodeUrl ( $redirect_uri )

getTokenUrl() protected méthode

protected getTokenUrl ( $code )

saveAccessToken() protected méthode

Save access token to the session.
protected saveAccessToken ( array $token )
$token array access token array.

Property Details

$client_id protected_oe property

protected $client_id

$client_secret protected_oe property

protected $client_secret

$jsArguments protected_oe property

protected $jsArguments

$name protected_oe property

protected $name

$providerOptions protected_oe property

protected $providerOptions

$scope protected_oe property

protected $scope

$title protected_oe property

protected $title

$type protected_oe property

protected $type