When trying to login with Facebook connect, the site appears to redirect a total of three times.

1) Once the user has authorized the dialog box, facebook connect refreshes the page. On my site, it appears to be working, but then:
2) Redirects to /user. Once here, no user information fields are filled in and it looks like the user is logged out
3) Once at /user in logged out, it redirects once again to the /user profile page with a logged in user.

What's the purpose of these redirects? And are they really necessary?

Comments

trevorwh’s picture

And to comply with the readme - I have read it from start to finish :)

Dave Cohen’s picture

Category: bug » support

What page are you on before you click the connect button?

trevorwh’s picture

I've done it on multiple pages - typically I was doing it on the advanced forum pages.

Also - I tried it on drupalforfacebook.com and it did the same thing.

Thanks.

trevorwh’s picture

Dave,

This is a bit of an odd issue. I'm unable to reproduce from a different system in IE - it logs in normally and doesn't do the redirect.

I'll do some additional testing and report back. I looked through the issue queue but didn't find anything - have you heard of anything/know of any issue that might be causing this? I'm working on this for a client so I'm happy to test/patch anything that is needed.

Thanks.

trevorwh’s picture

I just tried it again. Logging in on the frontpage of drupalforfacebook.org produces the same issue.

It also looks like this error is now happening on all pages when I attempt to login. Note that I'm using FireFox - not sure if that makes a difference.

Dave Cohen’s picture

What operating system?

You say that you go to http://www.drupalforfacebook.org, click the facebook connect button, and then it redirects you three times before landing on a page?

Does this happen only the first time (when the local account is created)? Or does it happen even if you logout then click connect again?

trevorwh’s picture

OS is Windows 7.

And that's correct - it happens every time I logout and click connect again - the local account has already been created.

martin.l’s picture