Facebook deauthorize my app

前端 未结 6 772
暖寄归人
暖寄归人 2020-12-18 00:40

Can I use Facebook PHP SDK to deauthorize my app for a particular user, basically I like to have a toggle so the user can link or unlink their facebook account to my site, I

6条回答
  •  -上瘾入骨i
    2020-12-18 01:23

    Now Graph API has a way to do this: https://developers.facebook.com/docs/reference/api/user/#permissions

    Delete

    You can de-authorize an application entirely, or just revoke a specific permission on behalf of a user by issuing an HTTP DELETE to USER_ID/permissions or USER_ID/permissions/PERMISSION_NAME respectively. This request must be made with a valid user access_token or an app access token for the current app.

提交回复
热议问题