6

Please can somebody share links of working example of Spring Social Facebook login except the sample applications on git hub that are provided by Spring Social people themselves. Especially if there is any sample code without the use of a database then that will be awesome.

Arpit Aggarwal
  • 27,626
  • 16
  • 90
  • 108
Kapil Mediratta
  • 89
  • 1
  • 1
  • 6

3 Answers3

6

Spring Social Example is the Spring 3.x implementation written by me, you just have to change Facebook/Twitter apikey, apisecret, callback url and scope as per your requirement in application.properties here.

Arpit Aggarwal
  • 27,626
  • 16
  • 90
  • 108
3

Here is the example of how to implement social login feature using spring framework.Blog of this application for precise explination.This application supprts

1) Form Login : This is classic login,where there will be a form accepting username and password.User need to submit his/her user details.

2) Social Login (Facebook,twitter & linkedin) : Here social user can signin in the application using their Facebook/Twitter/linkedin accounts. Then we add support for current users to associate their social accounts with their accounts in the application,it is also called mapping social user with local user.

Sunil Kumar
  • 5,477
  • 4
  • 31
  • 38
0

You can use the below github example,

https://github.com/pkainulainen/spring-social-examples

Source article : https://www.petrikainulainen.net/spring-social-tutorial/


I don't know why you don't need the example given by Spring team. But the article and example code looks very much helpful to me. These getting started guides based on Spring Boot will help you,

https://spring.io/guides/gs/accessing-facebook/

http://projects.spring.io/spring-social-facebook/

Clone the repo from github

git clone https://github.com/spring-guides/gs-accessing-facebook.git
Lucky
  • 16,787
  • 19
  • 117
  • 151
  • the OP said "except the sample applications on git hub that are provided by Spring Social people themselves". – Jean-François Beauchef Nov 08 '16 at 02:10
  • Its a tutorial explaining spring social with spring boot with a github example. Not a github link only. Plus the example is based on in memory h2 database. The OP needs to follow the step by step guide. – Lucky Nov 08 '16 at 04:47
  • Honnestly, I find the information to be good. But the OP did not say he did not want a GitHub link only. He said he didn't want a sample from the Spring team. And it is not using H2 or any database – Jean-François Beauchef Nov 08 '16 at 19:50