android - 如何注销并使用另一个 Facebook 帐户登录

标签 android facebook-graph-api logout

我使用 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/

相关文章:

php - session 表现出突然的行为

android - 已删除 gen 文件夹,eclipse 现在不生成它 :(

android - editText的实时计算?

facebook - 我可以使用新的 Facebook Graph API 根据特定标签从 instagram 获取所有帖子吗?

ios - 使用自定义前缀/协议(protocol)在 Facebook 上链接(如 myapp ://blahblah)

使用 SAML 在单点注销中终止 session

android - chrome android设置宽度为100%

Android logcat 被 "W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op"淹没

facebook-graph-api - 我们如何使用用于社交登录的 Google OAuth API 和 facebook API 获取电话号码?

iphone - facebook-ios-sdk 注销问题