ADDED Facebook factory to make the SDK testable.