0

当我从 localhost 运行脚本时,auth.login 根本没有被触发。半小时后,一旦我从 facebook 注销 auth.logout 事件被触发。谁能告诉我原因并建议我任何事情。我正在通过以下方式进行操作:

    window.fbAsyncInit = function() {
    FB.init({
        appId: "472581889444408",
        status: true,
        xfbml: true,
        oauth: true
       }); 


    FB.Event.subscribe('auth.statusChange', function(response){alert("status changed");});
    FB.Event.subscribe('auth.authResponseChange', function(response){alert("authResponse changed");});
    FB.Event.subscribe('auth.login', function(response){alert("log in");});
    FB.Event.subscribe('auth.logout', function(response){alert("log out");});


     };
4

0 回答 0