Some improvements to the facebook server login flow