Method | Description | |
---|---|---|
__construct ( |
||
getAccessToken ( ) : null | Gajus\Fuss\AccessToken | Resolve the user access token from the signed request. | |
getAppData ( ) : mixed | The content of the app_data query string parameter which may be passed if the app is being loaded within a Page Tab. | |
getPageTab ( ) : null | Gajus\Fuss\PageTab | Return PageTab when app is loaded in a page tab. | |
getPayload ( ) : array | Return the signed request payload. | |
getUserId ( ) : null | integer | User ID when user access token is in or can be derived from the signed request. | |
isPageTab ( ) : boolean | True if signed request has been acquired through a Page Tab. |
Method | Description | |
---|---|---|
decodeBase64Url ( string $input ) : string | The incoming token is encoded using modified base64 encoding for URL, where +/ is replaced with -_ to avoid percent-encoded hexadecimal representation. | |
parse ( string $raw_signed_request ) : array | Parse signed request and validate the signature. |
public __construct ( |
||
$app | ||
$raw_signed_request | string | It is base64url encoded and signed with an HMAC version of your App Secret, based on the OAuth 2.0 spec. |
public getAccessToken ( ) : null | Gajus\Fuss\AccessToken | ||
return | null | Gajus\Fuss\AccessToken |
public getAppData ( ) : mixed | ||
return | mixed |
public getPageTab ( ) : null | Gajus\Fuss\PageTab | ||
return | null | Gajus\Fuss\PageTab |
public getPayload ( ) : array | ||
return | array |