Phonegap cordova 2.3.0 phonegap-facebook-plugin

时间:2013-04-24 10:50:20

标签: cordova phonegap-plugins facebook-ios-sdk

我正在尝试在我的ios phonegap应用程序上设置facebook connect插件,我按照以下链接中的步骤进行操作

https://github.com/phonegap/phonegap-facebook-plugin

并完成了100%,但是当我运行应用程序时它在控制台中显示此错误

2013-04-24 13:43:10.009 ShoBingg[2538:19a03] CDVPlugin class FacebookConnectPlugin (pluginName: org.apache.cordova.facebook.Connect) does not exist.
2013-04-24 13:43:10.010 ShoBingg[2538:19a03] ERROR: Plugin 'org.apache.cordova.facebook.Connect' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2013-04-24 13:43:10.010 ShoBingg[2538:19a03] -[CDVCommandQueue executePending] [Line 103] FAILED pluginJSON = ["org.apache.cordova.facebook.Connect467591405","org.apache.cordova.facebook.Connect","init",["427370550688587"]]
2013-04-24 13:43:10.010 ShoBingg[2538:19a03] CDVPlugin class FacebookConnectPlugin (pluginName: org.apache.cordova.facebook.Connect) does not exist.
2013-04-24 13:43:10.010 ShoBingg[2538:19a03] ERROR: Plugin 'org.apache.cordova.facebook.Connect' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2013-04-24 13:43:10.010 ShoBingg[2538:19a03] -[CDVCommandQueue executePending] [Line 103] FAILED pluginJSON = ["org.apache.cordova.facebook.Connect467591406","org.apache.cordova.facebook.Connect","getLoginStatus",[]]

我在互联网上搜索了这个错误,每个人都有相同的错误修复它,在config.xml中添加以下代码行

<plugin name="org.apache.cordova.facebook.Connect" value="FacebookConnectPlugin" />

我添加了它,但我仍然有同样的错误?

1 个答案:

答案 0 :(得分:1)

您是否已将此添加到config.xml中?

<feature name="org.apache.cordova.facebook.Connect">
        <param name="ios-package" value="FacebookConnectPlugin" />
    </feature>

我有同样的问题,添加了这个,它对我有用: source

请注意,这仅在phonegap cordova 3.0上进行了测试