OK, let me try and explain the issue I'm having since I updated to the latest version of Drupal for Facebook.
The process I built worked exactly like the one below (before the upgrade):

1. User clicks on Add Photo
2. If user is not logged in s/he gets redirected to the User Log In page
3. User Connects with Facebook or Logs in using the default Drupal Log in
4. User gets redirected back to the Add Photo page on #1

Now #4 does not work any more for Facebook connect. But it works fine with the default Drupal Log in.

I also happened to notice that once the User connects with facebook the following string is added to the node/add/photo page so that it becomes node/add/photo?fb_js_fbu=98987764 (fb user id)

I appreciate this might not give much information on the problem but any thoughts or suggestions would be highly appreciated.

Many thanks in advance

Comments

Dave Cohen’s picture

Is the problem that at first the url has something like ?destination=... and that gets replaced with ?fb_js_fbu=... ???

sp_key’s picture

How did you know :) Oh please elaborate - it will help me understand too...

sp_key’s picture

So is there any way I can go around this issue?
I tried creating an alias URL without the Question mark in the URL but still the same problem.

mayur.pimple’s picture

for redirection this code is not working when user login

 $url = url('welcome',
                     array('absolute' => TRUE, 'fb_canvas' => fb_is_canvas()));
          // We return javascript to be evaluated by fb.js.
          $return[] = "FB_JS.reload('$url');";