Hi Dave,
I am getting redirects from the canvas page to the callback page whenever Facebook decides to open a new session, namely when ?fb_sig_in_canvas=1&fb_sig_request_method=GET&fb_sig_friends=........ gets attached to the URL, whatever canvas page I am at. I am guessing that the response is a http redirect to the corresponding callback page that propagates back to my browser?
I did install your common.inc patch but I am pretty sure that plays no special role here since I get this behavior with multiple URLs.

Can you please comment on this.
Thanks,
Peter

Comments

alviso’s picture

For now I managed to solve some of my problems by conditionally setting the $absolute parameter to false in common.inc ur().
I am thinking that the url going absolute should be prevented in all cases since we are operating in a proxied mode for all canvas pages.

Dave Cohen’s picture

Do you have some module which is calling drupal_goto? Try adding to drupal_goto() a call to watchdog() which prints a debug_backtrace. In other words, try to track down the exact cause of the redirect.

You don't want to force url to never make absolute URLs. For one thing, some form submissions from canvas pages need to go directly to the absolute url of the server.

alviso’s picture

I added the watchdog() call to the drupal_goto(), tested that it makes an entry to the log when there is a drupal_goto()
After that I concluded that the redirect I get is not the result of a drupal_goto()

Here is the callback url (removed some proprietary parts)
http://facebook.viddeo.hu/?fb_sig_in_canvas=1&fb_sig_request_method=GET&fb_sig_friends=&fb_sig_position_fix=1&fb_sig_locale=en_US&fb_sig_in_new_facebook=1&fb_sig_time=1236173739.2402&fb_sig_added=1&fb_sig_profile_update_time=1236105347&fb_sig_expires=1236178800&fb_sig_user=<user>&fb_sig_session_key=<key>&fb_sig_api_key=<key>&fb_sig_app_id=11298476258&fb_sig=<sig>

And the result is this
<fb:redirect url="http://facebook.viddeo.hu/"/>

I would appreciate if you could guess what is going on because I am out of ideas. I also created a sponsorship on your site for this issue.
Thanks,
Peter

Dave Cohen’s picture

That callback URL does not look like one for Drupal for Facebook. The callback URL should be set for you when you save the Facebook Application node. Are you using the latest modules?

If you removed some proprietary parts because you're worried about making them public, send me a message via the d.o contact form. Let me know exactly what callback url you are using.

alviso’s picture

Status: Active » Closed (fixed)

I think I have some problems with my config. I need to fix it. Thanks for your help.