From 88d72e059888a603b0dc23e1df741681b39e726d Mon Sep 17 00:00:00 2001 From: Craig Walls Date: Mon, 27 Apr 2015 11:50:50 -0500 Subject: [PATCH] Upgrade to Spring Social Facebook 2.0.1.RELEASE While this is a breaking change, continuing with Spring Social Facebook 1.1.x is also broken as it is no longer compatible with Facebook's API. Upgrading to 2.0.1.RELEASE may require some changes to be made to users' applications, but it will allow their applications to use the Facebook API once again. Closes gh-2837 --- .../boot/autoconfigure/social/FacebookAutoConfiguration.java | 2 +- spring-boot-dependencies/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/social/FacebookAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/social/FacebookAutoConfiguration.java index 2cc85af70e..e1c534b45f 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/social/FacebookAutoConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/social/FacebookAutoConfiguration.java @@ -70,7 +70,7 @@ public class FacebookAutoConfiguration { public Facebook facebook(ConnectionRepository repository) { Connection connection = repository .findPrimaryConnection(Facebook.class); - return connection != null ? connection.getApi() : new FacebookTemplate(); + return connection != null ? connection.getApi() : null; } @Bean(name = { "connect/facebookConnect", "connect/facebookConnected" }) diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml index f0bf795503..42a9160cf1 100644 --- a/spring-boot-dependencies/pom.xml +++ b/spring-boot-dependencies/pom.xml @@ -124,7 +124,7 @@ 3.2.7.RELEASE 1.0.3.RELEASE 1.1.0.RELEASE - 1.1.1.RELEASE + 2.0.1.RELEASE 1.0.1.RELEASE 1.1.0.RELEASE 2.2.1.RELEASE