Refactor FB login