use of org.springframework.social.facebook.connect.FacebookConnectionFactory in project ORCID-Source by ORCID.
the class SocialConfig method connectionFactoryLocator.
@Bean
public ConnectionFactoryLocator connectionFactoryLocator() {
logger.info("getting connectionFactoryLocator");
ConnectionFactoryRegistry registry = new ConnectionFactoryRegistry();
registry.addConnectionFactory(new FacebookConnectionFactory(fb_key, fb_secret));
registry.addConnectionFactory(new GoogleConnectionFactory(gg_key, gg_secret));
return registry;
}
Aggregations