refactored as wrapper for Facebook class