check for nils when connecting to facebook