refactoring facebook node route