Spring Social project not running

2019-09-06 06:19发布

问题:

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:

  1. Most probably you are disconnected from Internet. So check your network connectivity.
  2. Ensure you have given correct username and password while connecting to facebook.
  3. 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.
  4. Make sure that you have defined a callback url while creating application in facebook / twitter.