Infinite redirects when visiting canvas pages

alviso - March 20, 2009 - 14:44
Project:Drupal for Facebook
Version:6.x-2.x-dev
Component:Code
Category:support request
Priority:critical
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

Hi Dave,
by now I have picked up some experience with setting up DFF so I think this might be a bug.
Just upgraded the 6.x fb module from the version of a few days ago. It was fine before but now I get a redirect loop for all canvas pages. It only happens whe the user is logged on. I deleted the facebook app node, recreated it, removed the app in facebook, deleted the mapped user in drupal but every time I arrive to the same conclusion, redirect loop.
Thanks, Peter

#1

Dave Cohen - March 20, 2009 - 16:11

What are the user settings on the facebook app. Are you creating local accounts and mapping them? Please be more specific than "logged in". Do you mean logged into facebook or drupal? Has the user authorized the app?

I've made a bunch of changes lately. Mostly to better support facebook connect. It's very possible I broke canvas pages in the process...

#2

alviso - March 20, 2009 - 16:30

My settings are creating local accounts automatically and mapping them, requiring logged in users, yes.
Logged into facebook, calling the facebook app, authorizing the app, (drupal user getting created on the fly), redirect loop. I get redirect loop trying all kinds of urls not just the frontpage.

#3

alviso - March 21, 2009 - 09:52

Also enabled the redirect page in the devel module but redirect loop still remains. Interesting.

#4

natrio - March 21, 2009 - 11:29

I got the same problem too, and I think the demo link in the http://www.drupalforfacebook.org/ also got that redirect loop problem..

#5

Dave Cohen - March 21, 2009 - 19:07

I can't reproduce it. What's the URL your browser is pointing to?

What operating system and browser versions are you using?

#6

natrio - March 22, 2009 - 02:53

Here's the link: http://apps.facebook.com/drupalforfacebook/node
I'm using WinXP SP2 and Firefox 3.0.7

Browsing with firefox gave me this error:

Redirect Loop
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

EDIT: Using Opera 9.50 on the same box, the link is working as intended. So, I guess this is a firefox-only problem

#7

shiver - March 24, 2009 - 14:16
Version:6.x-2.x-dev» 5.x-2.x-dev
Component:User interface» Code
Priority:normal» critical

I'm also having the same issues. Tested in 5.14 and 6.10 getting the same results.
It works great on the canvas page, when not logged into Facebook.
But, once logged into Facebook the redirect loop error is displayed in Chrome, IE, and FF.
However, in Safari "Error while loading page The URL http://mysite.com/fb_cb/180/fb_cb/180/ did not respond." is displayed.
And in Opera "The URL was redirected to http://apps.facebook.com/myapp/fb_cb/180/. Please click the link to go there." is displayed.

I am quite sure I had this all working on 5.14 install as of 2 days ago, and I did not make any changes. So i'm quite curious as to why this is happening, any ideas on how to fix it?

*update so yea, once logged into FB it just keeps going to http://mysite.com/fb_cb/180/fb_cb/180........ which causes the re-direct loopy loop! I never used to have this problem with a 5.14 install of drupal (had same issue with 6.10 so I went back ot 5.14)...I installed this patch http://drupal.org/node/241878 to fix the front-page problem, and everything in the world was peachy! but the day after, started getting the redirect-loop error in 5x too. HMm

#8

Dave Cohen - March 24, 2009 - 17:34
Version:5.x-2.x-dev» 6.x-2.x-dev
Category:bug report» support request

shiver, sounds like everything you described was fixed by the http://drupal.org/node/241878 patch. The infinite redirects is something else.

I can't reproduce it, on apps.facebook.com/drupalforfacebook or any of my test apps. I believe you guys, but I need better instructions on how to reproduce this problem.

#9

Dave Cohen - March 24, 2009 - 17:36
Title:Redirect loop with current 6.x-2.x-dev version» Infinite redirects when visiting canvas pages

#10

domidc - May 3, 2009 - 15:03

I m trying to set up a facebook app with the 6.x-2.x-dev version of the fb module.
I ve enabled following modules:
DFF Applications
DFF Connect
DFF Facebook API

When I try to view the app I get stuck in the redirect loop
http://dev.kosmospiraat.com/fb_cb/12/fb
If i m correct using this url should show http://dev.kosmospiraat.com/fb when going to the app on facebook http://apps.facebook.com/kosmospiraatdev
I used 'Set Application Properties Automatically' when creating the fb app node.

I also tried to use the connect button: http://dev.kosmospiraat.com
When I m logged in to facebook I get logged in on the site too and everything looks fine.
When I log out using de button on the site and try to log in again I also get the redirect error.
When logging in to facebook again I m connected again when going back to the site.

The patch I ve been reading about does not apply to drupal 6

Is their a solution yet for the drupal 6 version?

#11

giorgio79 - September 25, 2009 - 14:06

Hello,

I seem to be having the same issue.

Just installed the latest dev.

Created facebook app on facebook, installed fbml theme, and created a facebook app on my site. Added secret key and app id, hit save.

Now when I go to apps.facebook.com/myapp shows me this in the iframe

The page isn't redirecting properly        

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    *   This problem can sometimes be caused by disabling or refusing to accept
          cookies.

I also tried accessing my site like this

http://www.mywebsite.com/fb_cb/23608/ and had the same

I also tried setting the application to FBML instead of iframe inside the App settings on Facebook, and then I got this

Error while loading page from appname
The URL http://www.whatever.com/fb_cb/23608/ did not respond.

There are still a few kinks Facebook and the makers of appnameare trying to iron out. We appreciate your patience as we try to fix these issues. Your problem has been logged - if it persists, please come back in a few days. Thanks!

I have all DFF modules enabled, so not sure.

Any ideas?

#12

Dave Cohen - September 25, 2009 - 14:34

have you guys edited the settings.php file as instructed in README.txt?

Are you using a domain name that is visible from facebook? Nothing like 'localhost'.

If someone can tell me how to reproduce, I will try to fix. For now I'm at a loss...

#13

giorgio79 - September 25, 2009 - 15:11

Yep, I have that. Could it be perhaps some kind of interference with a module?

I will pull a list when I am at my other comp.

Breezing through now, I have modules like Boost, Path Redirect, Global Redirect, Pathauto. These could interfere with the path callbacks I guess

#14

giorgio79 - September 25, 2009 - 16:26

Aha, I think I found sg.

I disabled LoginToboggan module and my app started working.

Any of you have LoginToboggan installed?

#15

Dave Cohen - September 30, 2009 - 13:58
Status:active» postponed (maintainer needs more info)

If this only happens with logintoboggan enabled, I consider it a bug in that module, unless someone can show me otherwise.

If it happens without that module enabled, someone give me exact steps how to reproduce.

 
 

Drupal is a registered trademark of Dries Buytaert.