move facebook login logic to service