Closed (fixed)
Project:
Drupal for Facebook
Version:
6.x-3.0-rc1
Component:
Facebook Connect
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2010 at 23:18 UTC
Updated:
11 Apr 2012 at 17:00 UTC
First of all, big thanks to Dave for this module.
I've managed to get the DFF - Facebook Connect working. The login button does work and the user gets logged in with Facebook credentials.
However, the Drupal user doesn't see/know that he/she has been logged in because the login button doesn't change (the page doesn't refresh). So despite being logged in, the user still sees the "Connect" button.
When I hit refresh, the "Connect" button changes to "Log out" but only after I manually refresh the page (F5).
I'm wondering if this is something related to my Drupal configuration or if this is and issue with the module.
Thank you in advance for any tips.
| Comment | File | Size | Author |
|---|---|---|---|
| connect_logged_in.png | 70.65 KB | vasheck | |
| connect_logged_out.png | 58.17 KB | vasheck |
Comments
Comment #1
Dave Cohen commentedAre you using the login block provided by fb_connect.module?
It should be refreshing the page when the status changes.
Comment #2
vasheck commentedThank you Dave for your reply.
I followed the instructions here: http://drupal.org/node/195035
Yes, I do use the FB login block. Here are my block settings:
*******************
Anonymous user, not connected
Registered user, not connected
Connected User
Input format
- Filtered HTML
User specific visibility settings
- Users cannot control whether or not they see this block.
Role specific visibility settings
- none selected (show to all)
Page specific visibility settings
- Show on every page except the listed pages. (none listed)
*******************
I re-tested the login again and the issue seems to persist. I do get logged in but I must hit refresh (f5) in order to see the Log out button.
Thanks!
Comment #3
Dave Cohen commentedMake sure you're using the latest version of modules/fb.
Then edit modules/fb/fb_connect.js. Change FB_Connect.statusHandle() so the first line is something like:
alert("In FB_Connect.statusHandle! data.changed is " + data.changed);Maybe uncomment the alert in FB_Connect.on_connected(), too.
Enable firebug if available and see if it shows you any errors when you visit the site.
Do those alerts fire? What is data.changed? And what if anything does firebug report?
Comment #4
RasputinJones commentedReactivating.
I actually have a similar problem Dave. Tried the suggestion you made here and didn't see any alerts.
Comment #5
RasputinJones commentedWhat's particularly interesting about this bug as well is the fact that I have to click the logout button twice to fully log off my test site.
Comment #6
Dave Cohen commentedTry flushing caches, then refresh in browser to make sure you get your javascript changes.
Probably you have to click logout just onece, then refresh. I suspect the logout works but the refresh is not.
Comment #7
mstihi Dave!
I have the same problem. I press the FB connect button, the FB connect changes to the user's photo, but the user is not logged in.
If I manually reload the page, drupal also reloads the page and the user logs in.
I tried adding 'alert' but i did not see anything. I deleted the fb_connect.js file and there was no change in behavior. Is this normal?
Firebug show no errors.
Any ideas?
Comment #8
Dave Cohen commentedThe default behavior is to reload the page. Actually its a little more complicated... it makes an ajax call to the server intended to "hand-off" the session. Then, it reloads.
Try testing with firebug enabled. If there are any javascript errors on your page it can prevent the whole thing from working.
Comment #9
RasputinJones commentedFollowing up on this. The latest update to Drupal for Facebook 3.x works pretty well for me.
Comment #10
Dave Cohen commentedTrying to clean up the issue queue. If this is still a problem, re-open the issue.
Comment #12
gallamine commentedI have this problem too. Using firebug in FF 3.6.12 I get the following sequence. The three errors are all in:
http://connect.facebook.net/en_US/all.js?_=1290809787001
getLoginStatus() function
Page load:
When I click on "FB Connect" I get:
The login window pops up and I log in. Then I get the next error:
I can provide the code at each of those lines if you'd like. They are very lengthy.
Comment #13
mayur.pimple commentedFB.getSession is not a function
www.xyz.com/sites/all/modules/fb/fb.js?o
Line 320
Comment #14
mayur.pimple commentedI have face same problem. after login user need to refresh page.
what is solution.
Thanks
Comment #15
Dave Cohen commentedDon't post to closed issues. Open a new one if necessary.