Fix to facebook login, the broken session detection