PHP Class Overtrue\Socialite\Providers\FacebookProvider

Inheritance: extends AbstractProvider, implements Overtrue\Socialite\ProviderInterface
Afficher le fichier Open project: overtrue/socialite

Protected Properties

Свойство Type Description
$fields array The user fields being requested.
$graphUrl string The base Facebook Graph URL.
$popup boolean Display the dialog in a popup view.
$scopes array The scopes being requested.
$version string The Graph API version for the request.

Méthodes publiques

Méthode Description
asPopup ( ) Set the dialog to be displayed as a popup.
fields ( array $fields ) Set the user fields to request from Facebook.
getAccessToken ( string $code ) : AccessToken Get the access token for the given code.

Méthodes protégées

Méthode Description
getAuthUrl ( $state )
getCodeFields ( $state = null )
getTokenUrl ( )
getUserByToken ( Overtrue\Socialite\AccessTokenInterface $token )
mapUserToObject ( array $user )
parseAccessToken ( $body )

Method Details

asPopup() public méthode

Set the dialog to be displayed as a popup.
public asPopup ( )

fields() public méthode

Set the user fields to request from Facebook.
public fields ( array $fields )
$fields array

getAccessToken() public méthode

Get the access token for the given code.
public getAccessToken ( string $code ) : AccessToken
$code string
Résultat Overtrue\Socialite\AccessToken

getAuthUrl() protected méthode

protected getAuthUrl ( $state )

getCodeFields() protected méthode

protected getCodeFields ( $state = null )

getTokenUrl() protected méthode

protected getTokenUrl ( )

getUserByToken() protected méthode

protected getUserByToken ( Overtrue\Socialite\AccessTokenInterface $token )
$token Overtrue\Socialite\AccessTokenInterface

mapUserToObject() protected méthode

protected mapUserToObject ( array $user )
$user array

parseAccessToken() protected méthode

protected parseAccessToken ( $body )

Property Details

$fields protected_oe property

The user fields being requested.
protected array $fields
Résultat array

$graphUrl protected_oe property

The base Facebook Graph URL.
protected string $graphUrl
Résultat string

$popup protected_oe property

Display the dialog in a popup view.
protected bool $popup
Résultat boolean

$scopes protected_oe property

The scopes being requested.
protected array $scopes
Résultat array

$version protected_oe property

The Graph API version for the request.
protected string $version
Résultat string