EXTEND_PERMS_USER_ABOUT
EXTEND_PERMS_USER_ABOUT
User Data Perms *
Horde_Service_Facebook_Auth:: wrap functionality associated with authenticating to Facebook.
For now, only provide methods for authenticating that make sense from within a Horde context.
Copyright 2009-2017 Horde LLC (http://www.horde.org/)
$_facebook : \Horde_Service_Facebook
__construct(\Horde_Service_Facebook $facebook)
Constructor
\Horde_Service_Facebook |
getOAuthUrl(string $callback, array $perms = array(), string $state = null) : string
Get the URL for the user to authenticate the application and authorize various extender permissions/
string | $callback | The callback url. FB will redirect back to here. |
array | $perms | An array of FB permissions to request. |
string | $state | A random, but unique string for FB to return to ensure security. |
The URL.
getAuthTokenUrl(string $code, string $callback) : string
Returns the URL to obtain the auth_token from FB after getOAuthUrl redirects back to your callback URL.
string | $code | The code returned by FB after the OAuth2 dialog |
string | $callback | The callback url. Required in order to authenticate via OAuth2. |
The URL.
getSessionKey(string $code = null, string $callback = '') : string
Obtain the current access_token. Either returns the currently set token or, if a OAuth2 code is provided, sends a GET request to FB requesting the access_token.
string | $code | The code returned from FB's OAuth dialog. |
string | $callback | If provided, used as the callback URL required during the final steps in the OAuth2 process. |
The access_token