Hello,
All the 'create issue' recommended steps taken.
Login destination module settings aren't in effect when user is logged in against Facebook.
The same concerns Rules module, action 'Page redirection after User has logged in'.
Looks like *no* redirection after login doesn't work when Facebook logon is processed.
Is it by design? If not, how to make the redirection work?
Comments
Comment #1
Konstantin Boyandin commentedis this a known bug/feature, then?
Comment #2
Dave Cohen commentedIt doesn't work the same as logging in via a drupal login form.
A custom module can control what javascript is executed when a user connects (or logs out of facebook). Implement your own module, and take a snippet of code from fb_example.module to use as an example. Look in fb_example_fb() for the way it handles FB_OP_AJAX_EVENT (session_change). The example only redirects brand new users, but you could modify it to redirect anyone when they connect via facebook.
Comment #3
jospBln commentedSo I definitely have to write an own module to redirect the users after logging in with facebook?
Is there an actual tutorial somewhere how to build a basic app with dff?
Comment #4
Dave Cohen commentedhttp://drupal.org/node/912614
look under recipes for user management details.
Comment #5
jospBln commentedSo I put this in a php block
The connect window opens and closes after connecting but still there is no redirect to my landing page...
What am I doing wrong?
Comment #6
Dave Cohen commentedUse firebug or chrome console, put breakpoints in FB_JS.authResponseChange, FB_JS.sessionChangeHandler, and FB_JS.reload. See which if any are gettings called. They should each get called, in that order.
Comment #7
musa.thomasSame here with the rc3 / rc5 or dev version. Got the reload when the user is register but no redirect when he is not.
I think my redirection to logged user is make in rules , and my redirection is in custom module. But I don't think it's a probleme of weight module, just there are no reload if the user connect and he is not register. (this work before and dispear today for unknow reason).
I try with the hook facebook but no effect.
Comment #8
musa.thomasComment #9
musa.thomasIf i go on your site (http://www.drupalforfacebook.org/ ) we can see that there are attibutes "onlogin=FB_JS.reload();" It miss in fb_connect.module. For me it's work if I add it. So edit the content block or edit the fb_connect.module
replace the hook block "_fb_connect_block_login_defaults()" by
Comment #10
Dave Cohen commentedI can't remember why I customized it to include the onlogin attribute. I've removed it from http://www.drupalforfacebook.org. It should not be necessary, and it should not be the default because not every site needs a reload on login/logout. But it is safe to include. You should change it by configuring the block, not changing the module code.
Comment #11
Konstantin Boyandin commentedStill no success in using Drupal for Facebook in its current state for D7.
I do not care it could work fine with bare installation. I do not use the mentioned conflicting modules, but authentication/user creation still doesn't work as expected.
Sorry, I have to give up using this module. It's not yet ready for production sites and no one can tell when it will be.
Comment #12
rafuel92 commentedThe problem with login destinations persists.
Comment #13
imadalin commentedI get this too.
For example user logins with FB, gets back to User Login page with his Facebook picture and name above the login form and if he hits 2-3 times the login link he is redirected to his user profile.