Added various fixes for facebook login scenarios.