AlmogBaku / ngFacebook

DEPRECATED Angular facebook service
MIT License
261 stars 70 forks source link

Login in app build by Cordova / Ionic / Phonegap #47

Closed danieleliberti closed 9 years ago

danieleliberti commented 9 years ago

After doing the build with Cordova / Ionic / Phonegap the app does not show the login window.

AlmogBaku commented 9 years ago

did you included the cordova facebook plugin?

danieleliberti commented 9 years ago

Yes cordova plugin add https://github.com/phonegap/phonegap-facebook-plugin --variable APP_ID=your_facebook_app_id --variable APP_NAME=your_facebook_app_name

AlmogBaku commented 9 years ago

please try to check if you used the cordova plugin as well.. (you can try using weinre to debug, and to run on the console FB.login().

In general, ngFacebook should work smoothly with cordova (as it was in my ex-startup).

danieleliberti commented 9 years ago

All configurations seem correct. The build is created without errors . Unfortunately, there is shown the window of the Facebook login .

Where can I download a small webapp testing for test.?

THX for the support

AlmogBaku commented 9 years ago

use the test directory from here with cordova+facebook.

danieleliberti commented 9 years ago

The problem was solved by changing the file for facebook sdk created and used by cordova. src="http://connect.facebook.net/en_US/sdk.js"

AlmogBaku commented 9 years ago

@danieleliberti you should not use the facebook sdk(that loaded from the url above).. you should you the cordova-facebook-sdk instead!