Active
Project:
Drupal for Facebook
Version:
6.x-3.0-rc7
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Jan 2011 at 06:31 UTC
Updated:
21 Jul 2011 at 20:26 UTC
Here is the sequence:
1. I login to drupal
2. Login to facebook
3. Go to http://www.domain.com/user//edit/fb_user
4. Click connect to facebook button.
5. Nothing happens.
6. If I refresh/click save/browser to other pages I get logged out.
I have
1. 'Map if UID and facebok id are known' - Selected
2. 'Map email' - deselected
3. Create local account if user authorized the app
4. Set FB Cookie - selected
5. Store tokens in session - selected
Any suggestion?
Comments
Comment #1
udvranto commentedMore info:
1. I have 'remember me in this computer' selected in facebook login. This logs me in automatically.
2. As soon I get logged in, I get logged out in Drupal AND in facebook.
3. I turned off the fb_user.module and it stopped. I think this got introduced in RC7. However I am not 100% sure though.
Please I need help on this! :(
Thanks in advance!
Comment #2
udvranto commentedI think it's related to: http://drupal.org/node/669712
Comment #3
udvranto commentedIt logs me out of Chrome and Internet explorer as well. I turned off 'Map if UID and facebok id are known' as well. Did not solve the problem.
Comment #4
udvranto commentedMore testing (using Chrome):
1. Disabled Legal module. In some cases I was taken to the terms and conditions pages. It somewhat stabilized my log outs
2. Emptied out the fb_user table. Deleted all the entries from user table where init is like %@facebook%.
3. Now logged into facebook. Refreshed my drupal page. The account page shows that I am connected to facebook!! Checked the fb_user. It has my id vs fb id map!!! Although I have the setting (1. map id if known, 2. do not map using email address, 3. auto create local account), it mapped me! How is this possible?
4. For now I deleted the facebook app from settings. I am getting frustrated! :(
Comment #5
Dave Cohen commentedIt mapped you because you're logged into facebook and have authorized the app. That's what map id if known means.
Sounds in comment #4 like it is behaving how it is supposed to. Is there any problem?
Comment #6
udvranto commentedI see! I was expecting the module to look into the fb_user table before mapping. Let me see if I can set the options right and have a workable flow for the user registration.
Comment #7
pedrorocha commentedI'm almost sure that the problem is when Legal module is enabled together with fb_user. I'm having the same problem here, and i'm really focused on solving this, but don't know the exactly solution.
The Legal module sends the user to a page using the hook_user() in the login, if the user didn't checked the "I accept" that this module is supposed to force the user to accept. Fb_user acts in the hook_user(), in the login too. Maybe this is the question, they are conflicting in some way.
I'm trying to debug this a little more, because i think that the problem is with Legal.
Comment #8
Dave Cohen commentedIf your site needs any extra info when creating an account, I recommend tell the fb_user.module never to create an account automatically. Force users to fill out the user/register form, and you'll be sure to have the extra info. Even if the extra info is simply the legal checkbox.
Comment #9
pedrorocha commentedDisabling Drupal For Facebook, the Legal module runs smoothly. They are conflicting, giving a "TOO_MANY_REDIRECTIONS" error in Apache.