Added authentication with existing fb or google access tokens.
Small refactoring