PHP Class FacebookOAuthService

Inheritance: extends EOAuth2Service
Show file Open project: nodge/yii-eauth

Protected Properties

Property Type Description
$client_id
$client_secret
$jsArguments
$name
$providerOptions
$scope
$title
$type

Protected Methods

Method 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 method

protected fetchAttributes ( )

fetchJsonError() protected method

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

getAccessToken() protected method

protected getAccessToken ( $code )

getCodeUrl() protected method

protected getCodeUrl ( $redirect_uri )

getTokenUrl() protected method

protected getTokenUrl ( $code )

saveAccessToken() protected method

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

Property Details

$client_id protected property

protected $client_id

$client_secret protected property

protected $client_secret

$jsArguments protected property

protected $jsArguments

$name protected property

protected $name

$providerOptions protected property

protected $providerOptions

$scope protected property

protected $scope

$title protected property

protected $title

$type protected property

protected $type