小编Ser*_*y L的帖子

Facebook注销/断开FB.login()在用户已连接时调用

<html>
    <head>
      <title>My Facebook Login Page</title>
    </head>
    <body>
      <div id="fb-root"></div>
      <script>
        window.fbAsyncInit = function() {
          FB.init({
            appId      : 'appID',
            status     : true,
            cookie     : true,
            xfbml      : true,
            oauth      : true,
          });
        };
        (function(d){
           var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
           js = d.createElement('script'); js.id = id; js.async = true;
           js.src = "//connect.facebook.net/en_US/all.js";
           d.getElementsByTagName('head')[0].appendChild(js);
         }(document));
      </script>
      <div class="fb-login-button">Login with Facebook</div>

    </body>
</html>
Run Code Online (Sandbox Code Playgroud)

每当我点击[使用Facebook登录]按钮时,我会在JS Console此消息中看到"当用户已连接时调用的FB.login()".

如何断开用户?

javascript php authorization facebook logout

9
推荐指数
2
解决办法
2万
查看次数

Windows上的PHP错误日志文件格式(php.ini error_log指令)

例如:
php.ini文件

...
; Log errors to specified file.
error_log = c:/php/php.log
...

错误日志文件(c:/php/php.log)包含此格式的每个条目:

[12-Jun-2011 12:58:55] PHP Notice:  Undefined variable: test in C:\www\phpinfo.php on line 2\r\r\n
[12-Jun-2011 12:59:01] PHP Notice:  Undefined variable: test in C:\www\phpinfo.php on line 2\r\r\n
[12-Jun-2011 13:01:12] PHP Notice:  Undefined variable: test in C:\www\phpinfo.php on line 2\r\r\n
[12-Jun-2011 13:02:11] PHP Notice:  Undefined variable: test in C:\www\phpinfo.php on line 2\r\r\n
[12-Jun-2011 13:11:23] PHP Notice:  Undefined variable: test in C:\www\phpinfo.php on line 2\r\r\n
[12-Jun-2011 …

php windows newline error-log

6
推荐指数
1
解决办法
3万
查看次数