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
Show file 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 property

public $apiBaseUrl

$attributeNames public property

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

$authUrl public property

public $authUrl

$scope public property

public $scope

$tokenUrl public property

public $tokenUrl