facebook-sdk icon indicating copy to clipboard operation
facebook-sdk copied to clipboard

Revoke auth method

Open pamelafox opened this issue 12 years ago • 2 comments

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.

pamelafox avatar May 29 '12 22:05 pamelafox

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?

martey avatar May 30 '12 00:05 martey

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).

seawolf42 avatar Aug 15 '16 00:08 seawolf42