androidfacebook-graph-apiandroid-facebook

Make Android app forget Facebook login


I have integrated Facebook login in my Android app. At first it asked for permissions (App would like to access your public profile and email address...) and logged me in. I want to test this again but no matter what I do, when I click the Login with Facebook button in my app, it logs me in.

I tried uninstalling my app, clearing cache and data of the Facebook as well. I know this is the standard behaviour, but I want Facebook to ask for permission again when I login with Facebook in my app so I could simulate and make sure that it will work when I publish the app on Google Play. Any ideas?


Solution

  • These settings are saved for each user. You can't revoke the permissions from anyone meaning the users need to deauthorize your app themselves.

    On Facebook or in the Facebook app go into Settings -> Account settings -> Apps (colorful box icon) -> Logged in with Facebook. Here find your app, click on it and click Remove app.

    This will revoke the permissions you gave the app with your Facebook user and next time you log in with Facebook in your app it will ask for permissions.