Helper for Facebook integration.
| package | XenForo_Facebook | 
|---|
getAccessToken(string $url, string $code) : array | false
string
string
arrayfalseArray of info (may be error); false if Facebook integration not activegetAccessTokenFromCode($code, $redirectUri)
getFacebookRequestErrorInfo($result, $expectedKey)
getFacebookRequestUrl(string $redirectUri, string | null $appId, string | null $state) : string
stringURL to return to
stringnullFacebook app ID
stringnullCSRF Protection
stringgetUserInfo(string $accessToken, string $path) : array
stringFB access token (from code swap, or given by user); may be empty
stringPath to access (defaults to "me")
arrayInfo; may be errorgetUserPicture(string $accessToken, string $size) : string
stringFB access token (from code swap, or given by user)
stringSize/type of picture. Defaults to large
stringBinary datasetUidCookie(integer $fbUid)
integer64-bit int of FB user ID