开发者

Graph API / FQL How to remove my own app from user?

开发者 https://www.devze.com 2023-03-27 17:46 出处:网络
I gain offline_access from the user when he accepts my application. Now, in my website, the user can delete my access to his facebook account.

I gain offline_access from the user when he accepts my application. Now, in my website, the user can delete my access to his facebook account. Is t开发者_如何学Pythonhere a way, to tell facebook to remove my app from this user ?

Thanks for your help


To revoke authorisation for an app, you can use a HTTP DELETE request with:

 https://graph.facebook.com/PROFILE_ID/permissions

From http://developers.facebook.com/docs/reference/api/user/#permissions:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号