Fixed Facebook login issues and API call issues