Facebook login (ionic2 , typescript)

hi everyone , where can i find api for use login with facebook in ionic2 typescript ?
i followed this tutorial: https://www.thepolyglotdeveloper.com/2016/01/use-ng2-cordova-oauth-for-all-your-ionic-2-oauth-needs/
and i got an error : “Cannot read property ‘ready’ of undefined”

You can use Native facebook.

Or can follow this other tutorial: using an oauth2 within an ionic 2 app replacing cordova.InAppBrowser to Native InAppBrowser.