Refactor fb doc