Hi , i’m facing a little issue with facebook login plugin (with a lot of another plugin too)
so i installed ionic-native and the plugin with $ ionic plugin add cordova-plugin-facebook4
I have the same problem , I think this is because using the ionic 2 -ts , the plugin cord -plugin- facebook4 not yet there is a typescript .
Can anyone help us?
thanks richard , i’m using firebase and geofire , firebase facebook login works perfectly , but i was looking for a native solution. and ionic.io dont provide a solution like geofire , so i prefer to keep using firebase for the moment . i will look at ionic.io user .
try Facebook.login instead of this.facebook.login and you can delete facebook: facebook from dependency injection , and this.facebook = facebook , also public facebook
Partially worked for me , now he is presenting this error in xcode console , you already have seen something?
Mar 10 13:15:53 Developers-Mac ToNaBalada[6348]: Starting login Mar 10 13:15:53 Developers-Mac ToNaBalada[6348]: *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> Permissions should each be specified in separate string values in the array.
its about the facebook permissions , as it say , you should put each permissions into separate string in the array ,try to just take email for testing , i will also test
should works properly now , for me its working , the issue was on the permission , former cordova plugin for facebook was letting us to pass permission into one string , but now we need to separate them, so thank you pointing this out