Package org.javlo.service.social
Class Facebook
- java.lang.Object
-
- org.javlo.service.social.AbstractSocialNetwork
-
- org.javlo.service.social.Facebook
-
- All Implemented Interfaces:
ISocialNetwork
public class Facebook extends AbstractSocialNetwork
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.gson.Gson
JSON
-
Fields inherited from class org.javlo.service.social.AbstractSocialNetwork
data
-
Fields inherited from interface org.javlo.service.social.ISocialNetwork
POPUP_URI_SUFFIX
-
-
Constructor Summary
Constructors Constructor Description Facebook()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
configureAuthenticationRequest(org.apache.oltu.oauth2.client.request.OAuthClientRequest.AuthenticationRequestBuilder builder, String clientId, ContentContext ctx, boolean popup)
protected void
configureTokenRequest(org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder builder, String clientId, String clientSecret, String code)
protected org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponse
executeTokenRequest(org.apache.oltu.oauth2.client.OAuthClient oAuthClient, org.apache.oltu.oauth2.client.request.OAuthClientRequest request)
String
getAuthzEndpoint()
IUserInfo
getInitialUserInfo(String accessToken)
Deprecated.String
getName()
protected SocialUser
getSocialUser(String accessToken, org.apache.oltu.oauth2.client.OAuthClient oAuthClient)
String
getTokenEndpoint()
-
Methods inherited from class org.javlo.service.social.AbstractSocialNetwork
buildAuthenticationRequest, buildTokenRequest, createAuthenticationRequest, createTokenRequest, fillUserInfo, getAccessToken, getApiKey, getClientId, getClientSecret, getData, getLogin, getLoginURL, getRedirectURL, getSigninURL, getSocialUser, getState, getToken, getURL, login, performRedirect, prepare, set, setApiKey, setClientId, setClientSecret, setLogin, setRedirectURL, setToken, setURL, update
-
-
-
-
Method Detail
-
getName
public String getName()
-
getAuthzEndpoint
public String getAuthzEndpoint()
- Specified by:
getAuthzEndpoint
in classAbstractSocialNetwork
-
getTokenEndpoint
public String getTokenEndpoint()
- Specified by:
getTokenEndpoint
in classAbstractSocialNetwork
-
getInitialUserInfo
@Deprecated public IUserInfo getInitialUserInfo(String accessToken) throws Exception
Deprecated.- Throws:
Exception
-
configureAuthenticationRequest
protected void configureAuthenticationRequest(org.apache.oltu.oauth2.client.request.OAuthClientRequest.AuthenticationRequestBuilder builder, String clientId, ContentContext ctx, boolean popup) throws Exception
- Overrides:
configureAuthenticationRequest
in classAbstractSocialNetwork
- Throws:
Exception
-
configureTokenRequest
protected void configureTokenRequest(org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder builder, String clientId, String clientSecret, String code)
- Overrides:
configureTokenRequest
in classAbstractSocialNetwork
-
executeTokenRequest
protected org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponse executeTokenRequest(org.apache.oltu.oauth2.client.OAuthClient oAuthClient, org.apache.oltu.oauth2.client.request.OAuthClientRequest request) throws org.apache.oltu.oauth2.common.exception.OAuthSystemException, org.apache.oltu.oauth2.common.exception.OAuthProblemException
- Overrides:
executeTokenRequest
in classAbstractSocialNetwork
- Throws:
org.apache.oltu.oauth2.common.exception.OAuthSystemException
org.apache.oltu.oauth2.common.exception.OAuthProblemException
-
getSocialUser
protected SocialUser getSocialUser(String accessToken, org.apache.oltu.oauth2.client.OAuthClient oAuthClient) throws Exception
- Overrides:
getSocialUser
in classAbstractSocialNetwork
- Throws:
Exception
-
-