Search code examples
permissionsfacebook-javascript-sdkfacebook-php-sdkfacebook-authentication

Remove an extended permission using the PHP SDK / JavaScript SDK?


in my app I want to allow the users to change the extended user permissions without going to the privacy settings page.

In the old REST API there is the "auth.revokeExtendedPermission" action to remove a specific permission, but I don't want to use this API because it will be depreciated soon.

Is there an other way to remove an extended permission using the newer PHP SDK or the JavaScript SDK?

Best Flashbaer


Solution

  • According to the auth.revokeExtendedPermission documentation the replacement for this in the Graph API is a HTTP DELETE to /{user id}/permissions?permission={permission name}

    This is covered here: https://developers.facebook.com/docs/reference/api/user/#permissions