refactoring and start using angular-facebook