I have a problem with Phonegap 3.0.0 and their Facebook plugin. I followed their explanation in the letter (twice), and I begin to think that either I am doing something incredibly wrong, or my versions are not lining up correctly.
The error I get from hackbook and simple.html:
ERROR: Plugin 'org.apache.cordova.facebook.Connect' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
Thus, in accordance with everything I found on the Internet (which in this case is not so much because they made some changes to the mayor in recent versions), it looks like my plist or xml.
So, I was hoping that someone had already launched it, or knew what I was doing wrong.
As for the config.xml file, I use it in the www folder (is this correct?) And added:
<gap:plugin name="com.phonegap.plugins.facebookconnect"> <param name="APP_ID" value="[app_id]" /> <param name="APP_NAME" value="[app_name]" /> </gap:plugin>
Regarding plist, I added:
<key>FacebookDisplayName</key> <string>[app_name]</string> <key>FacebookAppID</key> <string>[app_id]</string> <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLName</key> <string>[app_name]</string> <key>CFBundleURLSchemes</key> <array> <string>fb[app_id]</string> </array> </dict> </array>
The rest is done as indicated in the github page lesson.
source share