有没有办法删除 Facebook 应用程序的用户? [英] Is there a way to delete users for your Facebook Application?

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

问题描述

Facebook 开发人员在线文档中有针对测试用户的文档,但是如果应用程序不再显示在他们的应用程序列表中,您如何删除实际用户?这是基于 access_tokenfacebook_user_id 的知识.

There is documentation for test users in the Facebook Developer online documentation but how do you delete actual users where the application doesn't show in their app list anymore? This is with the knowledge of the access_token and facebook_user_id.

用于删除测试用户:

https://graph.facebook.com/893450345999?method=delete&access_token=A2ADI1YMySweBABBGrWPNwKMlubZA5ZCrQbxwhtlEd9FIQUrOVjsGD3mnIWEbUhzDz7dkuBekMFdHvjvJ9CZAU7EMSSaZBsgN60FkMCi3AAZDZD

运行测试用户链接产生以下错误:

Running the test user link produces the following error:

"error": {
      "message": "(#100) Can only call this method on valid test users for your app",
      "type": "OAuthException",
      "code": 100
   }

推荐答案

您寻求申请取消授权:

您可以使用该应用的用户 access_token 向 PROFILE_ID/permissions 发出 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.

permission - 您希望撤销的权限.如果您未指定权限,则这将完全取消对应用程序的授权.

permission - The permission you wish to revoke. If you don't specify a permission then this will de-authorize the application completely.

为了实现这个问题请求:

To achieve this issue request to:

https://graph.facebook.com/me/permissions?method=delete&access_token=...

一旦应用程序被取消授权,它就不会出现在用户的应用程序列表中.

Once application de-authorized it will not appear in the list of user's applications.

2021 年 12 月更新

按照请求&撤销权限:

要删除单个权限问题,请向 /{user-id}/permissions/{permission-name} 发送 DELETE 请求,并传递 用户访问令牌应用访问令牌

To remove single permission issue a DELETE request to /{user-id}/permissions/{permission-name} passing user access token or an app access token

要取消对应用程序的完全授权,请向 /{user-id}/permissions 端点发出类似的请求

To de-authorize an app completely issue similar request to the /{user-id}/permissions endpoint

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

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