org.springframework.social.facebook.connect
Class FacebookServiceProvider

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

public class FacebookServiceProvider
extends org.springframework.social.oauth2.AbstractOAuth2ServiceProvider<Facebook>

Facebook ServiceProvider implementation.


Constructor Summary
FacebookServiceProvider(String appId, String appSecret, String appNamespace)
          Creates a FacebookServiceProvider for the given application ID, secret, and namespace.
 
Method Summary
 Facebook getApi(String accessToken)
           
 
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(String appId,
                               String appSecret,
                               String appNamespace)
Creates a FacebookServiceProvider for the given application ID, secret, and namespace.

Parameters:
appId - The application's App ID as assigned by Facebook
appSecret - The application's App Secret as assigned by Facebook
appNamespace - The application's App Namespace as configured with Facebook. Enables use of Open Graph operations.
Method Detail

getApi

public Facebook getApi(String accessToken)
Specified by:
getApi in interface org.springframework.social.oauth2.OAuth2ServiceProvider<Facebook>
Specified by:
getApi in class org.springframework.social.oauth2.AbstractOAuth2ServiceProvider<Facebook>