Refactoring in order to support laelaps/symfony-facebook-bundle