Login with Fb and Google using Ionic


#1

I am trying to integrate fb login and google login with ionic framework .

Any idea which plugin suits best . I had tried InappBrwoser Plugin , giving me error “Could not find InAppBrowser Plugin”. but i am not successful on the same.

Any help on this ?

Thanks


#2

Do you try it from a device or a browser ?

If you try on a device be sure tu use

ionic plugins add org.apache.cordova.inappbrowser

then make a build

ionic build ios

If the build failed try to remove your platform and add them again

ionic platform remove ios
ionic platform add ios
ionic build ios

Cheers


#4

I have tried on device. i also remove platform and added it again. but i am still getting same error “Could not find InAppBrowser Plugin”


#5

Could you try to remove the plugin

ionic plugin rm org.apache.cordova.inappbrowser 

and add this one

ionic plugin add cordova-plugin-inappbrowser

Seem the issue is about ngCordova


#6

Which version of cordova and which version of plugin are you using? (try cordova plugin list to show all plugins and it versions).
I’m used oauth.io in ionic app for login via socail networks, perhaps it be helpfull.


#7

cordova-plugin-inappbrowser 1.0.0 “InAppBrowser”


#8

i tried the above steps still getting same error
I am using cordova-plugin-inappbrowser 1.0.0 “InAppBrowser”


#9

Seems plugin installed correctly, perhaps bug in your js code?


#10

Have you checked the plugin is installed correctly? I’ve had issues where they seem to install fine and even seem installed when you list them using the CLI, but then you look for the folders in your project and they aren’t installed properly.

If that’s the case uninstall and then reinstall.


#11

If you are using ngCordova + inAppBrowser, there have been some smaller issues.

  1. Take a look at this issue on @nicraboy repo, they had the same problem with the browser
  2. If you are using ngCordova, install the master as some changes have just been merged

Let me know if your integration works now!


#12

I usually just follow this one
http://ngcordova.com/docs/plugins/facebook/
hope this work to you