I require users to complete a terms and conditions (as should everyone). In order to do this, I have to create the drupal account AFTER I make the facebook connection. In other words, Drupal for Facebook, does not create the user account.
Users are coming to my site, clicking on Facebook Connect, and then seeing their picture, THINK they have logged in. It would be great if drupal_set_message() could display a message that says something like, "Your Facebook Account has been linked to the site, please now proceed with account creation by clicking >here<"
Also, once a user gets to this point.. It's not intuitive that in order to 'disconnect' they have to go back into facebook and log out of that account. The entire process makes it very difficult to have a smooth flowing process when a user account is not created immediatly after using Facebook Connect.
Comments
Comment #1
tpainton commentedIt appears that I can user hook_fb_user() to redirect after the user connects using facebook.. Therefore I can create the account then and there, THEN redirect to Terms and Condition page..
Comment #2
tpainton commentedAh heck.. This isn't so easy. Legal module seems to craft a strange url that needs to be decrypted.. back to the drawing board.
Comment #3
Dave Cohen commentedhook_fb_user is intended to help with this sort of thing. Be careful because it might be invoked during an ajax callback or a regular page. During ajax callback drupal_goto() will not do what you expect.
You could certainly display the message that you suggest during hook_fb_user().
If you can think of specific improvements to modules/fb please suggest them. I don't think modules/fb should include any code only to support the legal module.
Comment #4
tpainton commentedAs a note, the Agreement module works great with Drupal for Facebook so I am not going to reinvent the wheel. Thanks for the suggestions though.