Search code examples
facebook-graph-apilaravel-5laravel-socialite

How to revoke user permission on Socialite


I want to revoke the permission user gave me on Facebook, if he denied to give me Facebook's email. How can I do that?. I'm using Socialite on Laravel 5.2

Thank you


Solution

  • DELETE /{user-id}/permissions/{permission-name}
    
    DELETE /{user-id}/permissions
    

    This is explained in the official docs: https://developers.facebook.com/docs/facebook-login/permissions/requesting-and-revoking#revoking

    You can revoke permissions and even the general authorization.