Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phonegap 3.0.0 - Facebook SDK 3.6 - FB plugin: Facebook connect not found

I'm having this problem with Phonegap 3.0.0 and their Facebook plugin. I followed their explanation to the letter (two times), and i'm beginning to think that either I'm doing something stupendously wrong, or my versions don't line up properly.

The error I get from both the hackbook and simple.html is:

ERROR: Plugin 'org.apache.cordova.facebook.Connect' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.

So according to everything I found online (which in this case is not a whole lot seeing they made some mayor changes in recent versions), it seems to do with either my plist or xml.

So I was hoping somebody has gotten it running already, or knows what I'm doing wrong.

As for the config.xml, i'm using the one in the www folder (is that the correct one?), 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>

As for the plist I ended up adding:

<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 stated in the tutorial of the github page.

like image 758
Matt Avatar asked Dec 04 '22 09:12

Matt


1 Answers

The plugin is not compatible yet wit v3.0, the convertion in config.xml (not the www/config.xml, but the root directory's config.xml) from to is like this:

<feature name="org.apache.cordova.facebook.Connect">
    <param name="ios-package" value="FacebookConnectPlugin" />
</feature>
like image 134
Geykel Avatar answered Dec 06 '22 23:12

Geykel