Hi all, I'm trying to avoid that when a user has connected to Facebook from my webview, the next time he do it, doesn't need to put the email and password. I'm getting the cookie from the "facebook.com" domain with this sentence:
String cookie = CookieManager.getInstance().getCookie("facebook.com");
and storing it in a SQLite database. When the user try to connect another time to Facebook, I use this sentence after removing all another cookies:
CookieManager.getInstance().setCookie("facebook.com", user_acc.getSessionCookie());
but doesn't work. That cookie I suppose that is not valid because the user has to put his username and his password again and after login, I get a different cookie that the one I had stored.
What I'm doing wrong? Is there another way to accomplish that?
Thank you in advance.