android - Facebook logout is not Working -
i working in android app facebook integration getting issue whenever try logout facebook not getting logout,
i searched lot , have used code follows:
public facebook mfacebook = new facebook(app_id); sessionstore.clear(logoutactivity.this); try { mfacebook.logout(logoutactivity.this); } catch (malformedurlexception e) { // todo auto-generated catch block e.printstacktrace(); } catch (ioexception e) { // todo auto-generated catch block e.printstacktrace(); }
i tried above code not @ working,the facebook not getting complete logout. me out??
this may you...
activity.masyncrunner.logout(this, new requestlistener() { public void oncomplete(string response, object state) { log.d("logout facebook", response); if (boolean.parseboolean(response) == true) { // user logged out toast.maketext(getapplicationcontext(), "successfully logged out ", toast.length_long).show(); } } public void onioexception(ioexception e, object state) { } public void onfilenotfoundexception(filenotfoundexception e, object state) { } public void onmalformedurlexception(malformedurlexception e, object state) { } public void onfacebookerror(facebookerror e, object state) { } });
example below url
http://www.androidhive.info/2012/03/android-facebook-connect-tutorial/
Comments
Post a Comment