com.silverpeas.socialnetwork.connectors
Class FacebookConnector
java.lang.Object
com.silverpeas.socialnetwork.connectors.AbstractSocialNetworkConnector
com.silverpeas.socialnetwork.connectors.FacebookConnector
- All Implemented Interfaces:
- SocialNetworkConnector
@Named(value="facebookConnector")
public class FacebookConnector
- extends AbstractSocialNetworkConnector
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FacebookConnector
public FacebookConnector()
buildAuthenticateUrl
public String buildAuthenticateUrl(String callBackURL)
- Description copied from interface:
SocialNetworkConnector
- Build URL to call for authentication over social network
- Specified by:
buildAuthenticateUrl
in interface SocialNetworkConnector
- Specified by:
buildAuthenticateUrl
in class AbstractSocialNetworkConnector
- Parameters:
callBackURL
- the URL to call to after authentication
- Returns:
- authentication URL as String
exchangeForAccessToken
public AccessToken exchangeForAccessToken(javax.servlet.http.HttpServletRequest request,
String callBackURL)
throws SocialNetworkAuthorizationException
- Specified by:
exchangeForAccessToken
in interface SocialNetworkConnector
- Specified by:
exchangeForAccessToken
in class AbstractSocialNetworkConnector
- Throws:
SocialNetworkAuthorizationException
getUserProfile
public org.springframework.social.connect.UserProfile getUserProfile(AccessToken authorizationToken)
- Specified by:
getUserProfile
in interface SocialNetworkConnector
- Specified by:
getUserProfile
in class AbstractSocialNetworkConnector
getUserProfileId
public String getUserProfileId(AccessToken authorizationToken)
- Specified by:
getUserProfileId
in interface SocialNetworkConnector
- Specified by:
getUserProfileId
in class AbstractSocialNetworkConnector
updateStatus
public void updateStatus(AccessToken authorizationToken,
String status)
setJavascriptAttributes
public void setJavascriptAttributes(javax.servlet.http.HttpServletRequest request)
Copyright © 2016 Silverpeas. All Rights Reserved.