com.silverpeas.socialnetwork.connectors
Class FacebookConnector

java.lang.Object
  extended by com.silverpeas.socialnetwork.connectors.AbstractSocialNetworkConnector
      extended by com.silverpeas.socialnetwork.connectors.FacebookConnector
All Implemented Interfaces:
SocialNetworkConnector

@Named(value="facebookConnector")
public class FacebookConnector
extends AbstractSocialNetworkConnector


Constructor Summary
FacebookConnector()
           
 
Method Summary
 String buildAuthenticateUrl(String callBackURL)
          Build URL to call for authentication over social network
 AccessToken exchangeForAccessToken(javax.servlet.http.HttpServletRequest request, String callBackURL)
           
 org.springframework.social.connect.UserProfile getUserProfile(AccessToken authorizationToken)
           
 String getUserProfileId(AccessToken authorizationToken)
           
 void setJavascriptAttributes(javax.servlet.http.HttpServletRequest request)
           
 void updateStatus(AccessToken authorizationToken, String status)
           
 
Methods inherited from class com.silverpeas.socialnetwork.connectors.AbstractSocialNetworkConnector
getSettings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacebookConnector

public FacebookConnector()
Method Detail

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.