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

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

问题描述

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

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

我似乎找不到有没有办法使用脚本从用户个人资料中请求从我的网络应用程序请求这样做删除该应用程序。我知道他们可以在登录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.

推荐答案

UPDATED:正如其他人所说,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.

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


您可以通过调用Graph API
终止来撤销特定权限:

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

DELETE / {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天全站免登陆