Fixed up errors when connecting to facebook