Android Facebook注销错误

时间:2012-08-18 07:51:07

标签: android facebook

我为用户提供了在我的Android应用程序中注销的选项。 有时 注销过程因以下错误而停止。

 08-18 00:44:25.253: W/System.err(510): com.facebook.android.FacebookError:auth.expireSession failed
 08-18 00:44:25.302: W/System.err(510):     at com.facebook.android.AsyncFacebookRunner$1.run(AsyncFacebookRunner.java:86)
 08-18 00:44:25.302: W/FacebookError(510): com.facebook.android.FacebookError: auth.expireSession failed

这是我的退出代码。

     private void logout() {

    mAsyncRunner = new AsyncFacebookRunner(facebook);
    mAsyncRunner.logout(this, new RequestListener() {
          @Override
          public void onComplete(String response, Object state) 
          {
                 SessionStore.clear(home.this); // clear token and expire value
                 Editor editor = Prefs.edit();
                 editor.clear();
                 editor.commit();

                 cancelNotification();
          }

          @Override
          public void onIOException(IOException e, Object state) {
              Log.d("IOExcenption", e.toString());
          }

          @Override
          public void onFileNotFoundException(FileNotFoundException e,
                Object state) {
              Log.d("FileNotFoundException", e.toString());
          }

          @Override
          public void onMalformedURLException(MalformedURLException e,
                Object state) {
              Log.d("MalformedUrlExpection", e.toString());
          }

          @Override
          public void onFacebookError(FacebookError e, Object state) {
              e.printStackTrace();
              Log.w("FacebookError", e.toString());
          }
        });

有人有这个问题吗?或者看错了什么?

0 个答案:

没有答案