title: Spring social provider = ?error
body: <p>When i click on /signIn/facebook button it redirect me to facebook page i authorize and then it redirect me to my redirectUrl but with parametr error=provider. What i do wrong? As far as i know it shoud redirect to SignInAdapter and to compare userIds or something like this. How can i debug these. Why it's not working. My signInController should to redirect me to the signup page isn't it? here is my configuration:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:tx="http://www.springframework.org/schema/tx"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
      xmlns:aop="http://www.springframework.org/schema/aop" xmlns:util="http://www.springframework.org/schema/util"
      xsi:schemaLocation="
          http://www.springframework.org/schema/beans
          http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
          http://www.springframework.org/schema/aop 
          http://www.springframework.org/schema/aop/spring-aop-3.0.xsd"
      default-lazy-init="true"&gt;
  
      &lt;bean id="connectionFactoryLocator"
          class="org.springframework.social.connect.support.ConnectionFactoryRegistry"&gt;
          &lt;property name="connectionFactories"&gt;
              &lt;list&gt;
                  &lt;bean
                      class="org.springframework.social.facebook.connect.FacebookConnectionFactory"&gt;
                      &lt;constructor-arg value="${facebook.appId}" /&gt;
                      &lt;constructor-arg value="${facebook.appSecret}" /&gt;
                  &lt;/bean&gt;
              &lt;/list&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  
      &lt;bean id="usersConnectionRepository"
          class="org.springframework.social.connect.jdbc.JdbcUsersConnectionRepository"&gt;
          &lt;constructor-arg ref="dataSource" /&gt;
          &lt;constructor-arg ref="connectionFactoryLocator" /&gt;
          &lt;constructor-arg ref="textEncryptor" /&gt;
      &lt;/bean&gt;
  
      &lt;bean id="dataSource"
          class="org.springframework.jdbc.datasource.DriverManagerDataSource"&gt;
          &lt;property name="driverClassName" value="com.mysql.jdbc.Driver" /&gt;
          &lt;property name="url" value="jdbc:mysql://localhost:3306/shop" /&gt;
          &lt;property name="username" value="root" /&gt;
          &lt;property name="password" value="root" /&gt;
      &lt;/bean&gt;
  
      &lt;bean id="connectionRepository" factory-method="createConnectionRepository"
          factory-bean="usersConnectionRepository" scope="request"&gt;
          &lt;constructor-arg value="guest" /&gt;
          &lt;aop:scoped-proxy proxy-target-class="false" /&gt;
      &lt;/bean&gt;
  
      &lt;bean class="org.springframework.social.connect.web.ProviderSignInController"&gt;
          &lt;constructor-arg ref="simpleSignInAdapter" /&gt;
          &lt;property name="applicationUrl" value="${application.url}" /&gt;
          &lt;property name="signUpUrl" value="/signup" /&gt;
      &lt;/bean&gt;
      &lt;bean id="simpleSignInAdapter" class="com.social.SimpleSignInAdapter" /&gt;
  
  
      &lt;bean class="org.springframework.social.connect.web.ConnectController"&gt;
          &lt;!-- relies on by-type autowiring for the constructor-args --&gt;
          &lt;property name="applicationUrl" value="${application.url}" /&gt;
      &lt;/bean&gt;
  
      &lt;bean id="textEncryptor" class="org.springframework.security.crypto.encrypt.Encryptors"
          factory-method="noOpText" /&gt;
  &lt;/beans&gt;
  </code></pre>