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
Datei anzeigen Open project: yiisoft/yii2-authclient Class Usage Examples

Public Properties

Property Type Description
$apiBaseUrl
$attributeNames list of attribute names, which should be requested from API to initialize user attributes.
$authUrl
$scope
$tokenUrl

Public Methods

Method Description
applyAccessTokenToRequest ( $request, $accessToken )

Protected Methods

Method Description
defaultName ( )
defaultTitle ( )
defaultViewOptions ( )
initUserAttributes ( )

Method Details

applyAccessTokenToRequest() public method

public applyAccessTokenToRequest ( $request, $accessToken )

defaultName() protected method

protected defaultName ( )

defaultTitle() protected method

protected defaultTitle ( )

defaultViewOptions() protected method

protected defaultViewOptions ( )

initUserAttributes() protected method

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