What is the UsersConnectionRepository for in Spring Social Facebook?
-
23-01-2021 - |
Question
I'm following the directions here and elsewhere: https://github.com/SpringSource/spring-social/wiki/Quick-Start
Why do we need to specify a dataSource and UsersConnectionRepository to use Spring Social Facebook? What gets written to our database? Am I supposed to create special tables or modify my Users table?
Solution
Yep from the docs ~ For convenience is bootstrapping the schema from a running application, this schema definition is available in the spring-social-core module as a resource at the path /org/springframework/social/connect/jdbc/JdbcUsersConnectionRepository.sql.
From here http://static.springsource.org/spring-social/docs/1.0.x/reference/html/serviceprovider.html
You might want to take a look at the sample apps here