且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ios,Facebook注销和清除用户令牌

更新时间:2023-12-03 10:42:52

你是什么看到的不是SDK'没有清除令牌信息' - SDK确实清除了令牌。允许您查看您已经授权...消息的信息在于Facebook。在用户的应用设置中,他们会在您的应用中设置授权设置,您首次登录时会询问该设置。

What you're seeing is not the SDK 'not clearing the token information' - the SDK has indeed cleared the token. The information that allows you to see the 'you have already authorized...' message lies with Facebook. In the user's app settings, they have an authorization setting from your app, which you asked for when they first logged in.

要撤消应用的权限,您需要需要触摸Graph API。 FB文档,位于 https://developers.facebook.com/的删除部分docs / reference / api / user /

In order to revoke permissions from your app, you will need to touch the Graph API. FB docs, in the 'Delete' section of https://developers.facebook.com/docs/reference/api/user/


您可以取消授权申请或撤销特定的扩展
代表用户的权限,通过对该应用程序的用户access_token发出HTTP $ DELETE PROFID_ID /权限的HTTP DELETE请求。

You can de-authorize an application or revoke a specific extended permissions on behalf of a user by issuing an HTTP DELETE request to PROFILE_ID/permissions with a user access_token for that app.

我假设您知道如何使用SDK发布图谱API请求,如果没有,请告诉我。

I'm assuming you know how to post Graph API requests using the SDK, let me know if not.