I am testing my app, and when I had authorized my app with my user profile, I only gave it access to certain set of pages. Now I want to test different pages, but there seems to be no way to re-authorize the app.
When I request authorization again, Facebook just returns the existing authorization.
In my user profile on Facebook, Settings, App and Websites, I can see third party apps and remove them, but, I do not see any apps that I am an admin of here. How to remove your own apps permission from your profile or page?
Open Settings and tap Apps & notifications. Tap Permission manager to open the Android permission controller app. Click a specific permission from the app permissions list that you're interested in, like location. Here you'll see apps that have access to your location all the time or only while in use.
I'm not aware of a GUI way to do it. There is a way to do it via Graph API
. I'm using the dev documentation.
To revoke a specific permission
you have to make call to the Graph API
endpoint:
DELETE /{user-id}/permissions/{permission-name}
To completetly de-authorize an app or revoke login. You have to make call to the Graph API
endpoint:
DELETE /{user-id}/permissions
Revoking Permissions
Apps can let people revoke permissions that were previously granted. For example, your app could have a settings page that lets someone disable publishing to Facebook. That settings page could also revoke the publish_actions permission at the same time.
You can revoke a specific permission by making a call to a Graph API endpoint:
DELETE /{user-id}/permissions/{permission-name}
This request must be made with a user access token or an app access token for the current app. If the request is successful, you will receive a response of true.
Revoking Login
You can also let people completely de-authorize an app, or revoke login, by making a call to this Graph API endpoint:
DELETE /{user-id}/permissions
This request must be made with a valid user access token or an app access token for the current app. If the request is successful, your app receives a response of true. If the call is successful, any user access token for the person will be invalidated and they will have to log in again. Because you're de-authorizing your app, they will also have to grant access to your app as if they were logging in for the first time.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With