android - facebook authentication dialog disappearing instantly -


i using latest facebook android sdk when call mfaceboo.authorize(...) method dialog box not appearing instead full screen page showing second , instantly disappears.

i noticed have updated official facebook client app in device. when have removed updates facebook client authentication dialog working fine.

but problem can't force users of app not update facebook client app. facing same problem or knows solution please help.

following snippet using.

   mfacebook.authorize(myprofilescreen.this, permissions, new dialoglistener() {           @override         public void oncomplete(bundle values) {              /*              * here we'll token can store further use.              */             log.v(tag, "facebook login success! ");              launchprofilescreen();         }          @override         public void onfacebookerror(facebookerror e) {             // todo auto-generated method stub             log.v(tag, "onfacebookerror"+e.getmessage());         }          @override         public void onerror(dialogerror e) {             // todo auto-generated method stub             log.v(tag, "onerror"+e.getmessage());         }          @override         public void oncancel() {             // todo auto-generated method stub             log.v(tag, "oncancel");         }     }); 

also calling

 @override protected void onactivityresult(int requestcode, int resultcode, intent data) {     super.onactivityresult(requestcode, resultcode, data);      mfacebook.authorizecallback(requestcode, resultcode, data); } 

see question: android facebook share problem on device may help.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -