refactoring facebook notify