Facebook app internal setup freezes my app login in android -


looks have same problem, described here: facebook sdk android - first login slow / takes long time

here i'm doing:

facebooksdk.sdkinitialize(getapplicationcontext());  callbackmanager = callbackmanager.factory.create();  loginmanager.getinstance().registercallback(callbackmanager,     new facebookcallback<loginresult>() {         @override         public void onsuccess(loginresult loginresult) {             sharedpreferences.edit().putint("auth_type", constants.auth_type_facebook).apply();             processfacebooktoken(loginresult.getaccesstoken().gettoken());         }          @override         public void oncancel() {             finish();         }          @override         public void onerror(facebookexception exception) {             toast.maketext(facebookloginactivity.this, facebookloginactivity.this.getresources().gettext(r.string.facebook_login_error), toast.length_short).show();             finish();         }     });  arraylist<string> permissions = new arraylist<>(2); permissions.add("public_profile"); loginmanager.getinstance().loginwithreadpermissions(this, permissions); 

and if fb app installed, never launched, app freezes because of think: this native fb app first launch native fb app first launch

would perfect, if shows inside app, app freezes "setup" period if fb app not launched , user try login in app. there workaround?


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -