Refactor login() method to invoke FB.login() synchronously. Fixes issue #24.