refactor facebook spec