org.springframework.social.facebook.connect
Class FacebookServiceProvider
java.lang.Object
org.springframework.social.oauth2.AbstractOAuth2ServiceProvider<Facebook>
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.
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 |
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 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.
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>