Refactor registerWithFacebook
Bugfixing client connections