Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phonegap cordova 2.3.0 phonegap-facebook-plugin

I am trying to setup the facebook connect plugin on my ios phonegap applications, I followed the steps in the link below

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

and completed it 100% but when I run the app It showing this error in the console

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",[]]

I searched on the internet about this error and everyone had the same error fixed it with add the line of code below in the config.xml

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

and I added it but I am still have the same error?

like image 913
Man Mann Avatar asked Apr 24 '13 10:04

Man Mann


1 Answers

Have you added this to your config.xml ?

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

I had the same issue, added this and it worked for me : source

Please note this was only tested on phonegap cordova 3.0

like image 57
bart_88 Avatar answered Oct 15 '22 21:10

bart_88