title: Authlogic with facebook connect
body: <p>I have successfully integrated facebook connect in my rails app with authlogic.</p>
  
  <p>The problem is that if try to update the profile details of the facebook user there is a validation error that the password field cannot be blank.</p>
  
  <p>To solve the above issue, I added following to the User model.</p>
  
  <pre><code>  before_validation :update_authlogic_config
  
    def update_authlogic_config
      validate_password_field = !facebook_user?
      validate_email_field = !facebook_user?
    end
  
    def facebook_user?
      !facebook_uid.blank?
    end
  </code></pre>
  
  <p>After adding this code, there are not validation errors, but still the validation fails.</p>
  
  <pre><code>user.valid? retruns false
  user.errors.size return 0
  </code></pre>
  
  <p>if in the controller I do</p>
  
  <pre><code>@user.update_attributes!(params[:user])
  </code></pre>
  
  <p>the the exception which is raise is</p>
  
  <blockquote>
    <p>Validation failed:</p>
  </blockquote>
  
  <p>without any specific error.</p>