org.springframework.social.facebook.connect
Class FacebookConnectionFactory

java.lang.Object
  extended by org.springframework.social.connect.ConnectionFactory<S>
      extended by org.springframework.social.connect.support.OAuth2ConnectionFactory<Facebook>
          extended by org.springframework.social.facebook.connect.FacebookConnectionFactory

public class FacebookConnectionFactory
extends org.springframework.social.connect.support.OAuth2ConnectionFactory<Facebook>

Facebook ConnectionFactory implementation.


Constructor Summary
FacebookConnectionFactory(String appId, String appSecret)
          Creates a FacebookConnectionFactory for the given application ID and secret.
FacebookConnectionFactory(String appId, String appSecret, String appNamespace)
          Creates a FacebookConnectionFactory for the given application ID, secret, and namespace.
 
Method Summary
 
Methods inherited from class org.springframework.social.connect.support.OAuth2ConnectionFactory
createConnection, createConnection, extractProviderUserId, generateState, getOAuthOperations, getScope, setScope, supportsStateParameter
 
Methods inherited from class org.springframework.social.connect.ConnectionFactory
getApiAdapter, getProviderId, getServiceProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacebookConnectionFactory

public FacebookConnectionFactory(String appId,
                                 String appSecret)
Creates a FacebookConnectionFactory for the given application ID and secret. Using this constructor, no application namespace is set (and therefore Facebook's Open Graph operations cannot be used).

Parameters:
appId - The application's App ID as assigned by Facebook
appSecret - The application's App Secret as assigned by Facebook

FacebookConnectionFactory

public FacebookConnectionFactory(String appId,
                                 String appSecret,
                                 String appNamespace)
Creates a FacebookConnectionFactory 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.