How to I revoke the access token? I unset and destroy the session, which works fine to remove the data, but when I log in again, I'd like to be able to log in with a different Facebook account (it automatically logs me in to the account I had previously logged in with).
I've read over the docs but clearly I am missing something. Can anyone help me out on this?
You have 2 options:
DELETE
to PROFILE-ID/permissions
as it is described in the docs.Note: You can also use me
instead of your id
:
# Revoke access of currently logged in user
DELETE /me/permissions
# Or if you want to revoke access for a specific user
DELETE /{user-id}/permissions