Facebook API SDK撤消访问权限 [英] Facebook API SDK revoke access

查看:157
本文介绍了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 /权限发出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/user/ ):


您可以通过向$ b $发出HTTP DELETE请求来代表用户取消授权应用程序或撤消特定扩展的
权限b 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.

说明如果删除成功,则为true,否则为
。布尔值

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

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

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