通过 API 删除 Facebook 应用程序 [英] Removing Facebook application through API

查看:36
本文介绍了通过 API 删除 Facebook 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网络应用程序,它向用户配置文件添加一个应用程序,并请求扩展权限.

I have a web app that adds an application to a users profile, and requests extended permissions.

当用户从我的 Web 应用程序请求删除应用程序时,我似乎无法找到是否可以使用脚本从用户配置文件中删除该应用程序的方法.我知道他们可以在登录 Facebook 时删除该应用程序,但我想知道我是否可以通过 API 调用删除该应用程序.感谢您的帮助.

I can't seem to find if there is a way to use a script to remove the application from the users profile when they request to do so from my web app. I know they can remove the app when logged into Facebook, but I want to know if I can remove the app with an API call. Thanks for any help.

推荐答案

更新:正如其他人提到的,Facebook 现在有这个 API.不幸的是,我认为没有办法更改已接受的答案以给予信用.

UPDATED: As others have mentioned, Facebook now has this API. I don't think there is a way to change the accepted answer to give credit unfortunately.

来自:https://developers.facebook.com/docs/graph-api/reference/user/permissions/#Deleting

您可以通过调用图形 API 来撤销特定权限端点:

You can revoke a specific permission by making a call to a Graph API endpoint:

删除/{user-id}/permissions/{permission-name}

DELETE /{user-id}/permissions/{permission-name}

此请求必须使用用户访问令牌或应用访问当前应用程序的令牌.如果请求成功,您将收到 true 的响应.

This request must be made with a user access token or an app access token for the current app. If the request is successful, you will receive a response of true.

请注意,排除 {permission-name} 将撤销所有权限.

Note that excluding {permission-name} will revoke all permissions.

这篇关于通过 API 删除 Facebook 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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