我正在尝试将 facebook 集成到我的 cordova 1.8.1 应用程序中。我尝试了几个不同的插件,却发现它们不支持cordova 1.8。DaveJohnson 的插件据说支持cordova 1.8,但我遇到了问题。当我单击示例索引页面中的登录按钮时,我遇到了很多错误:
2012-09-18 14:44:00.327 LCBCChurch[4597:707] Multi-tasking -> Device: YES, App: YES
2012-09-18 14:44:00.337 LCBCChurch[4597:707] Multi-tasking -> Device: YES, App: YES
2012-09-18 14:44:02.625 LCBCChurch[4597:707] CDVPlugin class FacebookConnectPlugin (pluginName: org.apache.cordova.facebook.Connect) does not exist.
2012-09-18 14:44:02.629 LCBCChurch[4597:707] ERROR: Plugin 'org.apache.cordova.facebook.Connect' not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist.
2012-09-18 14:44:02.630 LCBCChurch[4597:707] FAILED pluginJSON = {"className":"org.apache.cordova.facebook.Connect","methodName":"init","arguments":["org.apache.cordova.facebook.Connect1","appid"]}
2012-09-18 14:44:02.632 LCBCChurch[4597:707] CDVPlugin class FacebookConnectPlugin (pluginName: org.apache.cordova.facebook.Connect) does not exist.
2012-09-18 14:44:02.634 LCBCChurch[4597:707] ERROR: Plugin 'org.apache.cordova.facebook.Connect' not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist.
2012-09-18 14:44:02.635 LCBCChurch[4597:707] FAILED pluginJSON = {"className":"org.apache.cordova.facebook.Connect","methodName":"getLoginStatus","arguments":["org.apache.cordova.facebook.Connect2"]}
2012-09-18 14:44:16.426 LCBCChurch[4597:707] CDVPlugin class FacebookConnectPlugin (pluginName: org.apache.cordova.facebook.Connect) does not exist.
2012-09-18 14:44:16.428 LCBCChurch[4597:707] ERROR: Plugin 'org.apache.cordova.facebook.Connect' not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist.
2012-09-18 14:44:16.429 LCBCChurch[4597:707] FAILED pluginJSON = {"className":"org.apache.cordova.facebook.Connect","methodName":"login","arguments":["org.apache.cordova.facebook.Connect3","email"]}
我什至遵循了 T 的视频教程,但我遇到了这些失败。有谁知道这些是什么意思以及我如何解决它们。非常感谢您提供的任何帮助,谢谢!
- - - 更新 - - - -
我认为这是我加载 .m 和 .h 文件的方式。我没有使用“引用”,而是将其添加为目标。
但是现在我遇到了另一个错误。登录按钮将我引导至 facebook,但现在我在 fb 中收到错误“发生错误。请稍后再试。” 任何想法如何解决这个问题?