I am a beginner with the Spring Framework and wanted to try out Spring Social to make a simple web application which retrieves data from Facebook. For this I followed Spring Soc
After looking at the git history of the source code for the artifact spring-social-facebook, which I got from GitHub, I couldn't find any trace of ConnectionRepository at all.
After checking it out at mvnrepository.com I realized that when using version 2.0.3.RELEASE of the artifact spring-social-facebook as a dependency a lot more jar-files where dowloaded by Maven than it was when using version 3.0.0.M1 as a dependency. Among the missing jar-filer were two artifacts which I needed to get my application up and running. They were spring-social-core and spring-social-config.
In the end I found ConnectionRepository in the spring-social-core jar-file.
So what I in the end needed to do was to change the dependencies in the original pom-file from the guide, which were the following:
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.social</groupId>
<artifactId>spring-social-facebook</artifactId>
</dependency>
</dependencies>
to:
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.social</groupId>
<artifactId>spring-social-facebook</artifactId>
<version>3.0.0.M1</version>
</dependency>
<dependency>
<groupId>org.springframework.social</groupId>
<artifactId>spring-social-core</artifactId>
<version>2.0.0.M2</version>
</dependency>
<dependency>
<groupId>org.springframework.social</groupId>
<artifactId>spring-social-config</artifactId>
<version>2.0.0.M2</version>
</dependency>
</dependencies>
These changes allowed me to start up the application and retrieve some facebook data.