Refactored Users.facebookDialog to work better