English 中文(简体)
fb:login-button 问题
原标题:fb:login-button Problems

I m对标识“fb:login-button”有麻烦。 如果Ilogin做的是罚款,但如果Ilogout确实没有记录,我必须更新该页,以便填写。

问题回答

这是我使用的法典,或许可以帮助你。 审视我所赞同的活动。 在日志/博客之后,该网页自动更新:

window.fbAsyncInit = function() {
    FB.init({
      appId:  <?php echo $facebook->getAppID() ?> , 
      cookie: true, 
      xfbml: true,
      oauth: true
    });

    FB.Event.subscribe( auth.login , function(response) {
        window.location.reload();
    });

    FB.Event.subscribe( auth.logout , function(response) {
        window.location.reload();
    });
  };




相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Remotely authenticating client Windows user on demand

Suppose I am writing a server for a particular network protocol. If I know that the client is running on a Windows machine, is it possible for my server to authenticate the Windows user that owns the ...

Role/Permission based forms authorizing/authentication?

While looking into forms authorizing/authentication, I found that it is possible to do role based authorizing by adding an array of roles to a FormsAuthenticationTicket. That way I can write User....

热门标签