Switching users
andregriffin - April 11, 2008 - 06:23
| Project: | Facebook - Auth |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I linked my facebook account to my drupal admin account, then logged out of both my facebook and drupal site. I then tried to log back into drupal using a different facebook account (creating a new user), and I was instead logged back in as admin (my linked account). After manually deleting my cookies, I was able to switch to the other user.
Is there any kind of cookie configuration within drupal that can be made to avoid this? Or is this some other type of problem?

#1
Now even when I log out of both sites, clear my cookies, login to facebook with my account (linked to admin), then click facebook login on my drupal site, see my correct facebook login info, it will still log me in as the other user i tried logging in with even after deleting that user.
I have php4 on my server, and i think i extracted the facebook_platform and simplexml44-0_4_4 correctly. However, i did notice that the facebook_platform has its own version of php4 compatibility now.
http://wiki.developers.facebook.com/index.php/PHP
#2
I'm not really sure what you are trying to do
but i think what you are saying is, after you login to a second facebook account (fb#2) and click the login button on drupal you still get your admin account and not your user account.
A) do you really mean the 6.x version? I havn't spent much time with the upgraded version I did. I really should do a proper upgrade one day.
B) the facebook library does something weird with cookies and all the actual work with the login api. I can't see anything in the code at a first glance to see what would cause this. I'll try to look asap at my install with php5 and see if it still breaks.
Have you tried any other non drupal site that has a facebook login button to see if the same behavior happends? maybe its a facebook issue?
#3
Yes, this was with the 6.x-dev version.
Basically what is happening is that I'm having issues logging in with different facebook users. Even when the credentials are entered for facebook user #2 (fb#2), it will still log me back in as (fb#1 - admin linked) and vice-versa. I'm not really sure what happened to allow me to login successfully as fb#2 at that one instance, but that was when i realized i couldn't login as admin again (with the facebook credentials - drupal credentials are without fail).