简体   繁体   中英

Cordova login with facebook

I am a beginner in develop cordova ,i use this exemple

https://github.com/nraboy/ng-cordova-facebook-example but in error are

display :!JavaScript ERROR: 'undefined' is not an object (evaluating 'e.hasOwnProperty') http://localhost:58578/js/ng-cordova.min.js:10

That happens because you are running it inside the browser where the facebook app doesnt not exits. In that case you need to run it on real device (not emulator) where you have the facebook app installed and the error should be gone.

The example you are trying, dont open the Facebook-App to Auth. it is opening a inAppBrowser it just work in your device of emulator

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM