fixes for facebook auth functionality