Facebook deauthorize my app

前端 未结 6 779
暖寄归人
暖寄归人 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条回答
  •  执念已碎
    2020-12-18 01:15

    Not using the currently supported Graph API: as currently setup there is no interface in the Graph API (or even the legacy APIs) to deauthorize an application. The user has to explicitly choose to do it themselves through the Facebook settings pages.

    However...

    The legacy REST api has http://developers.facebook.com/docs/reference/rest/auth.revokeAuthorization/, which SOUNDS like it does what you want.

    Let me know if that works for you: I'm curious.

提交回复
热议问题