I want to integrate facebook login into my web application developed using Spring MVC. What are the ways to do it?
If you want to get those pieces of information, like username... you will have to write some piece of code in your backend to handle the facebook callback.
As you are using Spring, how about you give it a try at Spring Social? http://www.springsource.org/spring-social
Looks easy to use.
1) First go to the https://developers.facebook.com and create your account and get your appId and appSecret;
2) Go to autoconfig and provide your appId and appSecret in your .net
MVC application
3) In developer of Facebook add your redirect URI (Products -> Add Product) which will look like this http://localhost.....
4) In your product on developer console, enable the required functionalities, which will be:
(OPTIONAL - If you want to publish the app)
5) Than in developer of facebook go to the app review
6) Choose yes to make it live
7) Enjoy..... hope it works! If you have any question ask me...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With