Guest User

Untitled

a guest
May 25th, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.01 KB | None | 0 0
  1.     public void logout(final Context context,
  2.                        final RequestListener listener,
  3.                        final Object state) {
  4.         new Thread() {
  5.             @Override public void run() {
  6.                 try {
  7.                     String response = fb.logout(context);
  8.                     if (response.length() == 0 || response.equals("false")){
  9.                         listener.onFacebookError(new FacebookError(
  10.                                 "auth.expireSession failed"), state);
  11.                         return;
  12.                     }
  13.                     listener.onComplete(response, state); //SAD PANDA
  14.                 } catch (FileNotFoundException e) {
  15.                     listener.onFileNotFoundException(e, state);
  16.                 } catch (MalformedURLException e) {
  17.                     listener.onMalformedURLException(e, state);
  18.                 } catch (IOException e) {
  19.                     listener.onIOException(e, state);
  20.                 }
  21.             }
  22.         }.start();
  23.     }
Advertisement
Add Comment
Please, Sign In to add comment