Phonegap 3.0.0 - Facebook SDK 3.6 - FB Plugin: Facebook Connection Not Found

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.

+4
source share
3 answers

Not sure about this particular plugin, but Phonegap recently started using this format in the config.xml file

 <feature name="Geolocation"> <param name="ios-package" value="CDVLocation" /> </feature> 

I installed this from the command line using the command line tool. I was in the root directory (one above the www directory, here I have plugins, www, platforms and mail merge folders) and I run the following command.

  phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation.git 

Not sure if this applies to plugins not listed on the PhoneGaps documentation page, but you can try it with the Facebook Connect plugin and change the URL of the git repo Facebook connection URL. If it works, the command line tool should update the config.xml file and everything else as needed. Hope this helps, but as I said, I have not tried the facebook plugin, but I had a similar problem with other plugins out of the box, and that’s how I solved them.

Edit:

Here is the URL from another thread that I answered with a similar problem with another plugin. Just find my answer. Cordoba iOS plugins not found

0
source

The plugin is not yet compatible with wit v3.0, converting to config.xml (not www / config.xml, but the config.xml root directory) from something like this:

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

Last answer for the latest facebook phonegap plugin. @Geykel's answer is already outdated according to this problem.

https://github.com/phonegap-build/FacebookConnect/issues/20

Make sure you include your FacebookConnectPlugin.m inside compilation sources

Assembly Phases> Compile Phases

enter image description here

+1
source

Source: https://habr.com/ru/post/1495835/


All Articles