While using $cordovaOauth getting a 'could not find InAppBrowser'

I am trying to integrate facebook login using $cordovaOauth plugin. 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.git 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!