PHP Класс Gajus\Fuss\App

Наследование: implements Gajus\Fuss\Session
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( integer $app_id, string $app_secret, array $options = [] )
getAccessToken ( ) : Gajus\Fuss\AccessToken Deriving the app access token from the app id and secret.
getId ( ) : integer
getOption ( self::OPTION_VERSION $name ) : mixed
getSecret ( ) : string
getSignedRequest ( ) : null | Gajus\Fuss\SignedRequest
getTopUrl ( ) : string When app is loaded either in Page Tab or Canvas, the top URL is generally not known.
setSignedRequest ( string $signed_request ) : null Designed to be used for a signed request retrieved via the JavaScript SDK.

Приватные методы

Метод Описание
bypassThirdPartyCookie ( ) : null When third party cookies are not accepted, client need to be redirected to the domain that needs to drop the cookies and then back to the original URL.
setOption ( self::OPTION_VERSION $name, mixed $value ) : null

Описание методов

__construct() публичный Метод

public __construct ( integer $app_id, string $app_secret, array $options = [] )
$app_id integer App ID.
$app_secret string App secret.
$options array

getAccessToken() публичный Метод

The access token of this type bypass the access token validation.
См. также: https://developers.facebook.com/docs/facebook-login/access-tokens#apptokens
public getAccessToken ( ) : Gajus\Fuss\AccessToken
Результат Gajus\Fuss\AccessToken

getId() публичный Метод

public getId ( ) : integer
Результат integer

getOption() публичный Метод

public getOption ( self::OPTION_VERSION $name ) : mixed
$name self::OPTION_VERSION
Результат mixed

getSecret() публичный Метод

public getSecret ( ) : string
Результат string

getSignedRequest() публичный Метод

public getSignedRequest ( ) : null | Gajus\Fuss\SignedRequest
Результат null | Gajus\Fuss\SignedRequest

getTopUrl() публичный Метод

This is an attempt to reconstruct the top URL with whatever accompanying state data.
public getTopUrl ( ) : string
Результат string

setSignedRequest() публичный Метод

Designed to be used for a signed request retrieved via the JavaScript SDK.
См. также: https://developers.facebook.com/docs/reference/javascript/FB.getLoginStatus#response_and_session_objects
public setSignedRequest ( string $signed_request ) : null
$signed_request string
Результат null