Spring Boot 2 - Where is FacebookAutoConfiguration

164 Views Asked by At

I am trying to build facebook application with spring boot 2 and spring social. As I understand Spring Boot v2 pushed away bunch of things.

Where can I find FacebookAutoConfiguration class? Do I have to create it by myself now?

1

There are 1 best solutions below

2
GolamMazid Sajib On

Configuration class:

@Configuration
public class SocialConfig implements SocialConfigurer {

    @Override
    public void addConnectionFactories(ConnectionFactoryConfigurer cfConfig, Environment env) {
        cfConfig.addConnectionFactory(new FacebookConnectionFactory(
            env.getProperty("facebook.clientId"),
            env.getProperty("facebook.clientSecret")));
    }

    ...
}

Look at this to get details.