Example usage for org.springframework.social.facebook.security FacebookAuthenticationService FacebookAuthenticationService

List of usage examples for org.springframework.social.facebook.security FacebookAuthenticationService FacebookAuthenticationService

Introduction

In this page you can find the example usage for org.springframework.social.facebook.security FacebookAuthenticationService FacebookAuthenticationService.

Prototype

public FacebookAuthenticationService(String apiKey, String appSecret) 

Source Link

Usage

From source file:com.folion.config.SocialConfiguration.java

@Override
public void addConnectionFactories(ConnectionFactoryConfigurer connectionFactoryConfigurer, Environment env) {

    FacebookAuthenticationService facebookAuthenticationService = new FacebookAuthenticationService(
            env.getProperty("facebook.appKey"), env.getProperty("facebook.appSecret"));
    facebookAuthenticationService.setDefaultScope("email");

    connectionFactoryConfigurer.addConnectionFactory(facebookAuthenticationService.getConnectionFactory());
}