java - facebook android sdk doesn't show account picker -
i'm trying implement facebook sdk 4 (com.facebook.android:facebook-android-sdk:[4,5)
) authentication in app. i'm using loginbutton
login app. problem arises after first login.
the account picker displayed first time. , onwards when click login button, automatically logs in account chose first time.
this code i'm using logout:
protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); .... .... facebooksdk.sdkinitialize(getapplicationcontext()); }); protected void logoutfacebook() { firebaseauth.getinstance().signout(); loginmanager.getinstance().logout(); accesstoken.setcurrentaccesstoken(null); }
can please tell me how show account picker each time user clicks login button ?
Comments
Post a Comment