Facebook API SDK 撤销访问 [英] Facebook API SDK revoke access

查看:34
本文介绍了Facebook API SDK 撤销访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何允许用户使用他们的 API 服务 SDK 撤销对我的应用程序的访问权限.http://developers.facebook.com/docs/sdks/

How can I allow a user to revoke access to my application using their API service, SDK. http://developers.facebook.com/docs/sdks/

查看文档我找不到有关撤销访问权限的任何信息.

Looking at the documentation I can't find anything about revoking the access.

推荐答案

在用户对象的图形 API 中,您可以向/PROFILE_ID/permissions 发出 HTTP DELETE 请求以撤销对应用的授权.

in the graph API for the user object you can issue an HTTP DELETE request to /PROFILE_ID/permissions to revoke authorization for an app.

来自官方文档(developers.facebook.com/docs/reference/api/用户/):

您可以取消对应用程序的授权或撤销特定的扩展通过向用户发出 HTTP DELETE 请求来代表用户获得权限PROFILE_ID/权限以及该应用的用户 access_token.

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.

参数 说明 类型 所需权限 您的权限想撤销.如果您不指定权限,那么这将完全取消对应用程序的授权.字符串 否 你得到结果如下.

Parameter Description Type Required permission The permission you wish to revoke. If you don't specify a permission then this will de-authorize the application completely. string no You get the following result.

Description Type True 如果删除成功和错误除此以外.布尔值

Description Type True if the delete succeeded and error otherwise. boolean

这篇关于Facebook API SDK 撤销访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆