only log-in to facebook if necessary