Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void logout(final Context context,
- final RequestListener listener,
- final Object state) {
- new Thread() {
- @Override public void run() {
- try {
- String response = fb.logout(context);
- if (response.length() == 0 || response.equals("false")){
- listener.onFacebookError(new FacebookError(
- "auth.expireSession failed"), state);
- return;
- }
- listener.onComplete(response, state); //SAD PANDA
- } catch (FileNotFoundException e) {
- listener.onFileNotFoundException(e, state);
- } catch (MalformedURLException e) {
- listener.onMalformedURLException(e, state);
- } catch (IOException e) {
- listener.onIOException(e, state);
- }
- }
- }.start();
- }
Advertisement
Add Comment
Please, Sign In to add comment