|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OAuthSupport
Method Summary | |
---|---|
AccessToken |
extendTokenExpiration()
Extends this instance's short-lived-token expiration. |
AccessToken |
extendTokenExpiration(String shortLivedToken)
Extends the short-lived-token expiration. |
AccessToken |
getOAuthAccessToken()
Returns an access token associated with this instance. |
AccessToken |
getOAuthAccessToken(String oauthCode)
Exchange the code for a User Access Token. |
AccessToken |
getOAuthAccessToken(String oauthCode,
String callbackURL)
Exchange the code for a User Access Token. |
AccessToken |
getOAuthAccessTokenInfo()
Returns the access token information. |
AccessToken |
getOAuthAccessTokenInfo(String accessToken)
Returns the access token information. |
AccessToken |
getOAuthAppAccessToken()
Returns an App Access Token. |
String |
getOAuthAuthorizationURL(String callbackURL)
|
String |
getOAuthAuthorizationURL(String callbackURL,
AuthOption authOption)
|
String |
getOAuthAuthorizationURL(String callbackURL,
String state)
|
String |
getOAuthCallbackURL()
Sets the access token and callback URL |
DeviceCode |
getOAuthDeviceCode()
Returns a generated device code. |
AccessToken |
getOAuthDeviceToken(DeviceCode deviceCode)
Returns a Device Access Token. |
String |
getOAuthReAuthenticationURL(String callbackURL,
String nonce)
Returns the URL that asks the person to re-authenticate unconditionally. |
void |
setOAuthAccessToken(AccessToken accessToken)
Sets the access token |
void |
setOAuthAppId(String appId,
String appSecret)
sets the OAuth AppID and App secret |
void |
setOAuthCallbackURL(String callbackURL)
Sets the access token |
void |
setOAuthPermissions(String permissions)
sets the permissions |
Method Detail |
---|
void setOAuthAppId(String appId, String appSecret)
appId
- OAuth AppIDappSecret
- OAuth App secret
IllegalStateException
- when OAuth AppId has already been setvoid setOAuthPermissions(String permissions)
permissions
- comma-separated permission namesString getOAuthAuthorizationURL(String callbackURL)
String getOAuthAuthorizationURL(String callbackURL, String state)
String getOAuthAuthorizationURL(String callbackURL, AuthOption authOption)
String getOAuthReAuthenticationURL(String callbackURL, String nonce)
callbackURL
- callback urlnonce
- a completely arbitrary alphanumeric code that your app generates. see: The auth_nonce parameter
AccessToken getOAuthAccessToken()
IllegalStateException
- when this instance has no access tokenAccessToken getOAuthAccessToken(String oauthCode) throws FacebookException
oauthCode
- OAuth code.
FacebookException
- when Facebook service or network is unavailable, or the user has not authorizedAccessToken getOAuthAccessToken(String oauthCode, String callbackURL) throws FacebookException
oauthCode
- OAuth code.callbackURL
- callback URL
FacebookException
- when Facebook service or network is unavailable, or the user has not authorizedAccessToken getOAuthAppAccessToken() throws FacebookException
FacebookException
- when Facebook service or network is unavailable, or the user has not authorizedDeviceCode getOAuthDeviceCode() throws FacebookException
FacebookException
- when Facebook service or network is unavailable, or the user has not authorizedAccessToken getOAuthDeviceToken(DeviceCode deviceCode) throws FacebookException
FacebookException
- when Facebook service or network is unavailable, or the user has not authorizedvoid setOAuthAccessToken(AccessToken accessToken)
accessToken
- access tokenString getOAuthCallbackURL()
void setOAuthCallbackURL(String callbackURL)
callbackURL
- Callback URLAccessToken extendTokenExpiration(String shortLivedToken) throws FacebookException
shortLivedToken
- access token
FacebookException
- when Facebook service or network is unavailable, or the user has not authorizedAccessToken extendTokenExpiration() throws FacebookException
FacebookException
- when Facebook service or network is unavailable, or the user has not authorizedAccessToken getOAuthAccessTokenInfo(String accessToken) throws FacebookException
accessToken
- access token
FacebookException
- when Facebook service or network is unavailable, or the user has not authorizedAccessToken getOAuthAccessTokenInfo() throws FacebookException
FacebookException
- when Facebook service or network is unavailable, or the user has not authorized
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |