Package io.meeds.oauth.social
Class FacebookProcessor
java.lang.Object
io.meeds.oauth.social.FacebookProcessor
Processor to perform Facebook interaction
- Since:
- Sep 22, 2011
- Author:
- Anil Saldhana
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFacebookProcessor(String clientID, String clientSecret, String scope, String returnURL) -
Method Summary
Modifier and TypeMethodDescriptiongetAccessToken(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) getPrincipal(String accessToken) getUserAvatarURL(String accessToken) booleaninitialInteraction(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String verificationState) voidrevokeToken(String accessToken) protected URLsendAccessTokenRequest(String authorizationCode)
-
Field Details
-
trace
protected boolean trace -
clientID
-
clientSecret
-
scope
-
returnURL
-
-
Constructor Details
-
FacebookProcessor
-
-
Method Details
-
initialInteraction
public boolean initialInteraction(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String verificationState) throws IOException - Throws:
IOException
-
getAccessToken
public String getAccessToken(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws OAuthException - Throws:
OAuthException
-
sendAccessTokenRequest
- Throws:
IOException
-
getScopes
-
getPrincipal
-
getUserAvatarURL
-
revokeToken
-