问题
I downloaded the Spring social project from https://github.com/spring-projects/spring-social-samples/tree/master/spring-social-quickstart
When I run the project on Tomcat, after asking for connection and connecting to facebook, the webpage automatically redirects to http://localhost:8080/spring-social-quickstart/signin?error=provider#=
I am unable to understand the error. can anyone help?
//After Debugging It is never executing the method in HomeController.java which extracts the friends and return the next page.
回答1:
Check the followings:
- Most probably you are disconnected from Internet. So check your network connectivity.
- Ensure you have given correct username and password while connecting to facebook.
- Client Id and secret (generally in XML or properties file, you get it when you create your application in facebook / twitter) you use are correct.
- Make sure that you have defined a callback url while creating application in facebook / twitter.
来源:https://stackoverflow.com/questions/37583069/spring-social-project-not-running