I have made my first Firebase based webpage with Facebook authentication and it works really well (and easy to setup).
But I guess it is not easy to embed the html on a Phonegap App that would run on iOs/Android. I assume that the Facebook (or Twitter) authentication would not work directly on the App WebView.
Is it possible to make it work? Any hints?