DFF Connect continously redirects me to FB login page
| Project: | Drupal for Facebook |
| Version: | 5.x-2.x-dev |
| Component: | Facebook Connect |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
The second I turn on the Drupal for Facebook Connect module, any non admin page I go to automatically redirects me to the facebook login page.
I've set up a Facebook Application node with the correct API key and settings-- I'm able to browse my site's canvas pages via Facebook.
I've found that somehow the DFF Connect module inserts the following javascript into the footer:
top.location.href = "http://www.facebook.com/login.php?v=1.0&next=http%3A%2F%2Fgofobo.databasepublish.com%2Fuser%2Flogin";
I've looked throughout the code and can't find where this is being inserted, but it makes the site utterly unusable.
Please shed some light, anyone that actually has Facebook Connect up and running.
Thanks,
Craigmc

#1
In the app node, what did you select under Facebook User Settings -> Require Login?
If you want pages to be visible to users not logged into facebook, select allow anyone.
Are you using the same application for both connect and canvas pages? and do you want different login requirements for the two?
#2
Thx for the response Dave.
I've got "Allow anyone" for require login.
We want users that go to example.com to be able to look at just about anything. Then they can choose to either register directly with example.com, or to connect their facebook account and use that to login.
From within FB, they will be accessing a canvas page. We've got an alternate-themed version of the site that will only display to FB-authenticated users.
As of right now, the only piece of functionality I'm trying to get to work is just enabling the "Connect to FB" button, being able to authenticate to the site through FB, and not getting wackiness.
Issue, as I find it, is the little bit of code that gets inserted that does a top.location("blahblah facebook login blah blah"). Since top has no alternate destination, it just reloads the main page's content.
#3
Hi Dave--
So it turns out there were 2 things wrong.
1. I needed to put xmlns:fb="http://www.facebook.com/2008/fbml" inside the html tag
2. There was an unrelated JavaScript error that was breaking the whole page, and somehow fb_connect took that to mean always dump me out to Facebook.
Resolved the Javascript issue and took care of the xml namespace and things are working hunky-dory. Now just need to figure out how to place my own facebook login button instead of using the block.
Thanks again,
Craimc
#4
Cool. using IE? As far as I know, IE is the only browser that needs the xmlns attribute.
Unrelated javascript errors are bad. Glad you found it.
#5
Hi Dave--
Using FFox on a Mac. could be I didn't need the xmlns and that it was just the JS error that was keeping it from working correctly.
Thx,
Craig
#6
Automatically closed -- issue fixed for 2 weeks with no activity.