Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1004013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:03:59+00:00 2026-05-16T08:03:59+00:00

I have an existing site that is working well with Authlogic login. I’m trying

  • 0

I have an existing site that is working well with Authlogic login.

I’m trying to add Facebook login as an option, using the authlogic_facebook_connect plugin, but it’s not working properly.

I’m following the instructions located here:
http://github.com/jbasdf/authlogic_facebook_connect

On my registration form, I added the Facebook connect button using the procedure outlined, and when it is clicked, it is successfully posting to the form with the authenticity_token of the user, and nothing else, which I believe is the intended result. The controller code is extremely simple:

@new_user = User.new(params[:user])
@new_user.save

In my User model, I added the following before_connect method, which is never being called:

def before_connect(facebook_session)
  self.email = facebook_session.user.email
  reset_persistence_token
end 

I know this is not being called, because even if I add a line like raise "Error' to before_connect no error is occurring.

The actual save is failing, because of a number of authlogic’s own internal validations. I’m getting:

  • Email is too short (minimum is 6 characters)
  • Email should look like an email address.
  • Password is too short (minimum is 4 characters)
  • Password confirmation is too short (minimum is 4 characters)

Of course these are all empty, because nothing is being posted, and no password is even expected. I assume Authlogic is running the password tests because I have a password field in the database, which I need to keep to get regular logins to work.

What am I doing wrong here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T08:04:00+00:00Added an answer on May 16, 2026 at 8:04 am

    I’m not sure if this is the correct way, but finally got this to work simply by disabling all the problematic validations by AuthLogic, and recoding them myself in my app.

    This is the code that I included in my User model:

    acts_as_authentic do |c|
      c.validate_login_field = false
      c.validate_email_field = false
      c.validate_password_field = false
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to add some existing functionality to a site that uses jQuery
I have an existing site that requires a background image on the home page.
I have an existing application that imports data from a web site api into
I have to make some mods to an existing (and working) magento site. So
I have an existing site that I'd like to convert to use routing, and
While working on an existing Drupal site I've noticed a strange glitch that causes
I have a PHP site with a mySQL database that I'm working on. I'm
I'm working on an existing large site that uses querystings in ID for different
I'm working on logging in a site via existing facebook account. So I registered
I am working on a site that I have a GitHub repo setup for.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.