org.springframework.social.facebook.connect
Class FacebookConnectionFactory
java.lang.Object
org.springframework.social.connect.ConnectionFactory<S>
org.springframework.social.connect.support.OAuth2ConnectionFactory<Facebook>
org.springframework.social.facebook.connect.FacebookConnectionFactory
public class FacebookConnectionFactory
- extends org.springframework.social.connect.support.OAuth2ConnectionFactory<Facebook>
Facebook ConnectionFactory implementation.
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 |
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 FacebookappSecret
- 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 FacebookappSecret
- The application's App Secret as assigned by FacebookappNamespace
- The application's App Namespace as configured with Facebook. Enables use of Open Graph operations.