facebook permissions refactoring