Facebook Auth using InApp Browser

I am using firebase 3 + ionic 2 to do Facebook Auth, I can make it when using ionic serve —lab.
However, when I tried in the real device, the FB Auth windows don’t show. I know it’s due to iOS/Android can show popup directly.

I have followed : https://firebase.google.com/docs/auth/web/facebook-login
and reference : https://www.firebase.com/docs/web/libraries/ionic/guide.html#section-user-authentication , https://firebase.googleblog.com/2016/01/social-login-with-ionic_77.html

I have installed InAppBrowser plugin and allow <allow-intent href="*.firebaseio.com" /> <allow-intent href="auth.firebase.com" /> in config.xml, my code is as below

facebooklogin(){ var provider = new firebase.auth.FacebookAuthProvider(); this.fireAuth.signInWithPopup(provider).then(function(result) { // User signed in! console.log("user login"); }).catch(function(error) { // An error occurred }); }

May I have some suggestion? Many thanks.