我使用 facebook 应用程序的 SingleSignOn
对话框登录,但我无法清除 facebook 应用程序的缓存。
所以当我尝试使用另一个 facebook 帐户登录时,它会自动使用以前的帐户登录。
我能做什么?
public String logout(Context context) throws MalformedURLException, IOException {
Util.clearCookies(context);
Bundle b = new Bundle();
b.putString("method", "auth.expireSession");
String response = request(b);
setAccessToken(null);
setAccessExpires(0);
return response;
}
最佳答案
你必须使用 AsyncRunner.logout()
方法。看看example .
关于android - 如何注销并使用另一个 Facebook 帐户登录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8634536/