org.springframework.social.facebook.connect
Class FacebookServiceProvider

java.lang.Object
  extended by org.springframework.social.oauth2.AbstractOAuth2ServiceProvider<FacebookApi>
      extended by org.springframework.social.facebook.connect.FacebookServiceProvider
All Implemented Interfaces:
OAuth2ServiceProvider<FacebookApi>, ServiceProvider<FacebookApi>

public class FacebookServiceProvider
extends AbstractOAuth2ServiceProvider<FacebookApi>

Facebook ServiceProvider implementation.


Constructor Summary
FacebookServiceProvider(java.lang.String clientId, java.lang.String clientSecret)
           
 
Method Summary
 FacebookApi getApi(java.lang.String accessToken)
          Returns an API interface allowing the client application to access protected resources on behalf of a user.
 
Methods inherited from class org.springframework.social.oauth2.AbstractOAuth2ServiceProvider
getOAuthOperations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacebookServiceProvider

public FacebookServiceProvider(java.lang.String clientId,
                               java.lang.String clientSecret)
Method Detail

getApi

public FacebookApi getApi(java.lang.String accessToken)
Description copied from interface: OAuth2ServiceProvider
Returns an API interface allowing the client application to access protected resources on behalf of a user.

Specified by:
getApi in interface OAuth2ServiceProvider<FacebookApi>
Specified by:
getApi in class AbstractOAuth2ServiceProvider<FacebookApi>
Parameters:
accessToken - the API access token
Returns:
a binding to the service provider's API