Facebook Login does not work in Ionic1

I am trying to integrate facebook login using $cordovaOauth plugin in Ionic1. But it always resulting an error message ‘Could not find InAppBrowser’.

I already added the inapp browser plugin through https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git3 and also tried to add cordova-plugin-inappbrowser in config file. But the same error shows while test it on Android/Ios devices.

I had it all working 1 month ago and now I’m unsure what’s happened.
Any assistance or ideas would be very much appreciated.

Thank you!