2011-12-26 49 views
2

我使用Facebook應用程序的SingleSignOn對話框登錄,但我無法清除Facebook應用程序的緩存。
因此,當我嘗試使用另一個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; 
} 

回答

0

你必須使用AsyncRunner.logout()方法。看看example