fix function login with facebook