I am having the exact same problem as reported in this issue (http://drupal.org/node/1117594). I have a Facebook Login button to let users login and automatically create Drupal accounts. However, immediately after the user connects with Facebook, there are a number of processes which get kicked off and run in the background e.g. any content created by the previously anonymous user is now associated with their account.
The problem is that it appears the user account is not being created before FB login hands control back to Drupal so $user is not available to the next code to be run. I am using onlogin="Drupal.settings.fb.reload_url='http://myredirecturl.com' but this problem persists.
thanks for any help figuring out the solution.
Comments
Comment #1
takinola commentedok, solved this myself.
The redirect IS happening and $user IS available. For some reason, when I programatically save the new node it does not retain the values from $user ($user->name and $user->uid) but that is likely not a DFFB issue.
Comment #2
Dave Cohen commentedSo this is fixed, right?
Comment #3
takinola commentedYes it is