facebook-sdk
facebook-sdk copied to clipboard
Revoke auth method
I added a revoke_auth method to the SDK, seems to work:
def revoke_auth(self, id):
self.request(id + '/permissions', post_args={"method": "delete"})
Tried to do a pull request online but Github errored.
I think the error might be because of the additional changes you made to the error handling, which is similar but not the same as earlier commits (like bfbe5938ab30373e73885995ad509b8ff1e435bf). If it was removed, the pull request might work properly.
Looking at the API documentation on the permissions connection, it looks like it is also possible to revoke specific permissions as well as deauthorizing the entire application. Could you extend your method to include this?
I can add this functionality to #264 if you'd like, but I will need a suggestion on how to test it without changing the permissions of the user ID supplied for testing (so other tests continue to pass).