所以我通过facebook api将facebook登录功能安装到我的网站,它工作正常,但在使用facebook注销按钮注销后,我收到以下错误消息...我听说是因为我的会话仍处于活动状态,但我从未使用会话功能,我使用的是getUser()方法
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] =>
)
答案 0 :(得分:1)
FB api在内部使用SESSIONS。
注销后,检查你的$ _SESSION数组,你可能会在那里找到FB相关的东西。
当我遇到类似问题时,我必须自己手动删除这些问题才能完成注销。