fix facebook authentication flow and save facebook user to db