Checking connection status with facebook