Turns out 3 of the four behaviors were because I'd placed the
authlogic_facebook_login_button on a page other than user_sessions =>
new.
So now I've narrowed it down to an "Invalid username or password"
response when I click the facebook login button.
I'm under the impression (and have read elsewhere) that authlogic
shouldn't attempt to validate the login, password or email if the user
attempts to login via facebook.
Is there a setting I need to change to ensure that happens?
One item that may be pertinent: I modified my UserSession model to use
a different find_by_login_method.
It now looks like this: find_by_login_method :find_by_login_or_email
In my User model I define this:
def self.find_by_login_or_email(login)
User.find_by_login(login) || User.find_by_email_address(login)
end
This is how I allow users to login via email address. Could this be
conflicting with facebook_connect?
I removed the find_by_login_method from the UserSession model, and
nothing changed, but I'm curious nonetheless.
Thanks again! Authlogic's been a life-simplifier. Now if I can just
get it working with facebook.
Cheers,
Galen
On Nov 18, 9:08 pm, Galen <
withga...@gmail.com> wrote:
> Hi,
>
> I have previously used Authlogic on my site. Now I've got 40 users and
> want to integratefacebookconnect.
>
> I spent the past six hours following Kalasjocke's installation
> instructions and now my setup mirrors his exactly, as far as I can
> tell. However, when I click theConnectbutton (on my development
> platform, tunneled from my remote server) the User does not create --
> nothing changes in the database. Thefacebookdialog does appear, I
> clickconnect, the box either a) disappears and nothing happens or b)
> the box redirects to my site *inside itself* or c) it redirects
> somewhere, and the flash[:notice] says, "Username or Password
> Incorrect" or d) it redirects to my root url and nothing happens in
> the database.
>
> I'm thinking there's something I need to change in my User model, to
> accommodatefacebook. Could someone paste their create action and