Refactor Facebook join/login