dtr32221 2012-11-27 04:54
浏览 47

我退出facebook api应用程序后出错,会话仍然有效吗?

So I installed the facebook login feature to my website through the facebook api , it works fine , but after logging out with the facebook log-out button , I get the following error message below ... I've heard it's because my session is still active but I never used the session function in the good , I used the getUser() method instead

FacebookApiException Object
(
    [result:protected] => Array
        (
            [error] => Array
                (
                    [message] => Error validating access token: The session is invalid because the user logged out.
                    [type] => OAuthException
                    [code] => 190
                    [error_subcode] => 467
                )

        )

    [message:protected] => Error validating access token: The session is invalid because the user logged out.
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => /home/content/72/9959172/html/madscore/facebook/facebook-sdk/src/base_facebook.php
    [line:protected] => 1238
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /home/content/72/9959172/html/madscore/facebook/facebook-sdk/src/base_facebook.php
                    [line] => 870
                    [function] => throwAPIException
                    [class] => BaseFacebook
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [error] => Array
                                        (
                                            [message] => Error validating access token: The session is invalid because the user logged out.
                                            [type] => OAuthException
                                            [code] => 190
                                            [error_subcode] => 467
                                        )

                                )

                        )

                )

            [1] => Array
                (
                    [function] => _graph
                    [class] => BaseFacebook
                    [type] => ->
                    [args] => Array
                        (
                            [0] => /me
                        )

                )

            [2] => Array
                (
                    [file] => /home/content/72/9959172/html/madscore/facebook/facebook-sdk/src/base_facebook.php
                    [line] => 644
                    [function] => call_user_func_array
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [0] => Facebook Object
                                        (
                                            [sharedSessionID:protected] => 
                                            [appId:protected] => 314286708589099
                                            [appSecret:protected] => 8f803e0f9e9da4f2ba9f23ad3bd00ded
                                            [user:protected] => 
                                            [signedRequest:protected] => 
                                            [state:protected] => 
                                            [accessToken:protected] => 
                                            [fileUploadSupport:protected] => 
                                            [trustForwarded:protected] => 
                                        )

                                    [1] => _graph
                                )

                            [1] => Array
                                (
                                    [0] => /me
                                )

                        )

                )

            [3] => Array
                (
                    [file] => /home/content/72/9959172/html/madscore/authentication.php
                    [line] => 34
                    [function] => api
                    [class] => BaseFacebook
                    [type] => ->
                    [args] => Array
                        (
                            [0] => /me
                        )

                )

            [4] => Array
                (
                    [file] => /home/content/72/9959172/html/madscore/auth_output.php
                    [line] => 2
                    [args] => Array
                        (
                            [0] => /home/content/72/9959172/html/madscore/authentication.php
                        )

                    [function] => include_once
                )

        )

    [previous:Exception:private] => 
)
  • 写回答

1条回答 默认 最新

  • dongpo1216 2012-11-27 06:20
    关注

    The FB api uses SESSIONS internally.

    After you logout, check your $_SESSION array, and you'll probably find FB related things there.

    When I had a similar problem, I had to manually delete those myself to be able to complete my logouts.

    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大