我使用这个包:https://github.com/jsep/meteor-facebook-native-login 和cordova-plugin:https://github.com/jeduan/cordova-plugin-facebook4
当我做Meteor.loginWithNativeFacebook({})时,我得到的是:
I20161129-20:10:21.539(1)? 11-29 20:10:21.141 6596 6596 I chromium: [INFO:CONSOLE(289)] "err", source: http://localhost:12120/3327d0d4e5e931942359c7d85bf5ea6bbbc9c525.js?meteor_js_resource=true (289)
I20161129-20:10:21.540(1)? 11-29 20:10:21.141 6596 6596 I chromium: [INFO:CONSOLE(312)] "Error in Error callbackId: FacebookConnectPlugin304624227 : TypeError: r is not a function", source: http://localhost:12120/cordova.js (312)
I20161129-20:10:21.540(1)? 11-29 20:10:21.141 6596 6596 I chromium: [INFO:CONSOLE(314)] "Uncaught TypeError: r is not a function", source: http://localhost:12120/cordova.js (314)
如果我执行facebookConnectPlugin.login()
它会起作用,但每当我添加回调时它似乎都会崩溃。可能是cordova插件版本?我使用1.7.4。
答案 0 :(得分:0)
jsep:meteor-facebook-native-login的一些问题我想。
您必须指定权限。
示例:
Meteor.loginWithNativeFacebook({
requestPermissions: ['public_profile']
}, function(){
// callback
});