PHP Class yii\authclient\clients\Facebook

In order to use Facebook OAuth you must register your application at . Example application configuration: php 'components' => [ 'authClientCollection' => [ 'class' => 'yii\authclient\Collection', 'clients' => [ 'facebook' => [ 'class' => 'yii\authclient\clients\Facebook', 'clientId' => 'facebook_client_id', 'clientSecret' => 'facebook_client_secret', ], ], ] ... ]
See also: https://developers.facebook.com/apps
See also: http://developers.facebook.com/docs/reference/api
Since: 2.0
Author: Paul Klimov ([email protected])
Inheritance: extends yii\authclient\OAuth2
Afficher le fichier Open project: yiisoft/yii2-authclient Class Usage Examples

Méthodes publiques

Свойство Type Description
$apiBaseUrl
$attributeNames list of attribute names, which should be requested from API to initialize user attributes.
$authUrl
$scope
$tokenUrl

Méthodes publiques

Méthode Description
applyAccessTokenToRequest ( $request, $accessToken )

Méthodes protégées

Méthode Description
defaultName ( )
defaultTitle ( )
defaultViewOptions ( )
initUserAttributes ( )

Method Details

applyAccessTokenToRequest() public méthode

public applyAccessTokenToRequest ( $request, $accessToken )

defaultName() protected méthode

protected defaultName ( )

defaultTitle() protected méthode

protected defaultTitle ( )

defaultViewOptions() protected méthode

protected defaultViewOptions ( )

initUserAttributes() protected méthode

protected initUserAttributes ( )

Property Details

$apiBaseUrl public_oe property

public $apiBaseUrl

$attributeNames public_oe property

list of attribute names, which should be requested from API to initialize user attributes.
Since: 2.0.5
public $attributeNames

$authUrl public_oe property

public $authUrl

$scope public_oe property

public $scope

$tokenUrl public_oe property

public $tokenUrl