refactored facebook to package object