Facebook login on Android

Just curious if there is a way to login to Facebook without it appearing to leave my app?  I understand the need to spawn out to the Facebook interface for approval of permissions when the user first authorizes, however at subsequent loads of my app, I do the facebook.login call and it leaves my app for a few seconds with a progress spinner and a few Facebook popups that show and leave quickly.  After about 10 seconds, the user is presented with my app again.  Sounds confusing, but I’d really like to not have the facebook.login cause my app to go into the background while it does its thing.  Causes a poor user experience in my opinion.

Behaviour depends if user has installed facebook app or not.

If no facebook app is detected then I believe it will open browser to get permisions (probably each time)

However, I assume you have facebook app installed. If so, as you mentioned, when logging first time it will open app and show popup with permissions. When you accept it all, such info is saved somehow in fb app. Next time it will be so quick that you shouldn’t even notice it.

Yeah, I see the initial permissions behavior with the Facebook app installed as well as the web portion, however, on subsequent launches of my app, when I do facebook.login, it takes an obvious 5-10 seconds to go through the Facebook portion, thus affected launch times.  Am I missing something to speed things up?

Hard to say quickly. I don’t remember having any lag on android/ios after granting all permissions when using basic functions. Maybe old device or old fb app.

Maybe someone had similar problem.

Behaviour depends if user has installed facebook app or not.

If no facebook app is detected then I believe it will open browser to get permisions (probably each time)

However, I assume you have facebook app installed. If so, as you mentioned, when logging first time it will open app and show popup with permissions. When you accept it all, such info is saved somehow in fb app. Next time it will be so quick that you shouldn’t even notice it.

Yeah, I see the initial permissions behavior with the Facebook app installed as well as the web portion, however, on subsequent launches of my app, when I do facebook.login, it takes an obvious 5-10 seconds to go through the Facebook portion, thus affected launch times.  Am I missing something to speed things up?

Hard to say quickly. I don’t remember having any lag on android/ios after granting all permissions when using basic functions. Maybe old device or old fb app.

Maybe someone had similar problem.

An old thread but I am wondering if there is a way to do Facebook logins without “exiting” my app? I noticed that the app shows a blank screen with the spinning circle, then an empty Facebook pop-up that closes automatically, then my app comes back. I am testing on a device that had the Facebook app installed.

No, that’s how Facebook logs in.

An old thread but I am wondering if there is a way to do Facebook logins without “exiting” my app? I noticed that the app shows a blank screen with the spinning circle, then an empty Facebook pop-up that closes automatically, then my app comes back. I am testing on a device that had the Facebook app installed.

No, that’s how Facebook logs in.