some refactoring of Facebook methods