我正在尝试通过在应用开发者门户上创建一些测试用户来测试我的应用。当我单击测试用户旁边的“切换到”链接时,它会将我从 facebook 注销并以测试用户身份登录。但是我注意到开发人员用户的访问令牌在注销时不会失效。在注销的情况下访问令牌是否应该变得无效(当我实际上像普通用户那样注销facebook时就是这种情况)。这是一个错误还是我在这里遗漏了什么?
问问题
717 次
1 回答
1
I've noticed that access tokens don't always expire/invalidate as expected, and in a scenario like yours, you will have to manually set the new access token, leaving the old one in limbo somewhere.
$facebook->setAccessToken('new_access_token');
should be all you need to log the new user into your app assuming you're using the PHP-SDK.
于 2013-01-29T21:42:12.293 回答