I use the official Facebook SDK for Android in my application.
I managed to log in successfully
but the problem occurs when I try to log in as another user:
I click on the link that says Logged in as [name]... Not you?
but my application still continues and goes to my wall ...
(as if I clicked "Allow")
I found that clicking on this link throws a facebook exception and retries the request,
so I tried putting the call to logout () in a catch clause.
This allowed you to log in as user new ,
but the next time I started the application,
again the old user is registered ...
(Forgot like [old_user]. Aren't you?)
My question is:
Why is the first user login stored forever and how to handle a click on the link "Not You"?
My current solution is to always call logout() before the authorize() method but this forces the user to always enter their email address / password
which is also unacceptable.
Bojan radivojevic bomber
source share