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.GsonJSON-
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 voidconfigureAuthenticationRequest(org.apache.oltu.oauth2.client.request.OAuthClientRequest.AuthenticationRequestBuilder builder, String clientId, ContentContext ctx, boolean popup)protected voidconfigureTokenRequest(org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder builder, String clientId, String clientSecret, String code)protected org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponseexecuteTokenRequest(org.apache.oltu.oauth2.client.OAuthClient oAuthClient, org.apache.oltu.oauth2.client.request.OAuthClientRequest request)StringgetAuthzEndpoint()IUserInfogetInitialUserInfo(String accessToken)Deprecated.StringgetName()protected SocialUsergetSocialUser(String accessToken, org.apache.oltu.oauth2.client.OAuthClient oAuthClient)StringgetTokenEndpoint()-
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:
getAuthzEndpointin classAbstractSocialNetwork
-
getTokenEndpoint
public String getTokenEndpoint()
- Specified by:
getTokenEndpointin 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:
configureAuthenticationRequestin classAbstractSocialNetwork- Throws:
Exception
-
configureTokenRequest
protected void configureTokenRequest(org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder builder, String clientId, String clientSecret, String code)- Overrides:
configureTokenRequestin 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:
executeTokenRequestin classAbstractSocialNetwork- Throws:
org.apache.oltu.oauth2.common.exception.OAuthSystemExceptionorg.apache.oltu.oauth2.common.exception.OAuthProblemException
-
getSocialUser
protected SocialUser getSocialUser(String accessToken, org.apache.oltu.oauth2.client.OAuthClient oAuthClient) throws Exception
- Overrides:
getSocialUserin classAbstractSocialNetwork- Throws:
Exception
-
-