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.
- Author:
- Keith Donald, Craig Walls
|
Constructor Summary |
FacebookConnectionFactory(java.lang.String appId,
java.lang.String appSecret)
Creates a FacebookConnectionFactory for the given application ID and secret. |
FacebookConnectionFactory(java.lang.String appId,
java.lang.String appSecret,
java.lang.String appNamespace)
Creates a FacebookConnectionFactory for the given application ID, secret, and namespace. |
| Methods inherited from class org.springframework.social.connect.support.OAuth2ConnectionFactory |
createConnection, createConnection, extractProviderUserId, getOAuthOperations, getScope, setScope |
| 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(java.lang.String appId,
java.lang.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(java.lang.String appId,
java.lang.String appSecret,
java.lang.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.