在phonegap build中上传到www时出错

时间:2013-07-06 10:45:09

标签: facebook cordova

当我尝试在phonegap上传一个关于登录facebook的简单演示时,我在android中收到一条错误消息。

错误 - 插件错误(您可能需要从应用中删除插件文件):错误:您可以在此处修复此问题

我的结构是

的index.html

    <!DOCTYPE html>
<html>
<head>

    <script src="phonegap.js"></script>
    <!-- cordova facebook plugin -->
    <script src="cdv-plugin-fb-connect.js"></script>
    <!-- facebook js sdk -->
    <script src="facebook_js_sdk.js"></script>



</head>
<body>

    <div id="data">Hello </div>

    <button onclick="login()">Login</button>
    <button onclick="me()">Me</button>

    <script>
        document.addEventListener('deviceready', function() {
            try {
                alert('Device is ready! Make sure you set your app_id below this alert.');
                FB.init({
                    appId : "myid",
                    nativeInterface : CDV.FB,
                    useCachedDialogs : false
                });
                document.getElementById('data').innerHTML = "FB init executed";
            } catch (e) {
                alert(e);
            }
        }, false);

    </script>
</body>
</html>

config.xml中

    <?xml version="1.0" encoding="UTF-8"?>
<widget xmlns     = 'http://www.w3.org/ns/widgets'
        xmlns:gap = 'http://phonegap.com/ns/1.0'
        id        = "com.test.test"
        version   = "1.0.0">
    <name>test</name>

    <description>
        test
    </description>


    <feature name="http://api.phonegap.com/1.0/device" />

    <preference name="phonegap-version" value="2.7.0" />
    <preference name="orientation"      value="default" />
    <preference name="target-device"    value="universal" />
    <preference name="fullscreen"       value="false" />

    <preference name="prerendered-icon" value="true" />

    <icon src="img/phonegap/icons/logo.png" />

    <gap:splash src="img/phonegap/splash/splash.png" />


    <gap:plugin name="FacebookConnect">
        <param name="APP_ID" value="myid" />
        <param name="APP_NAME" value="test" />
    </gap:plugin>


    <feature name="http://api.phonegap.com/1.0/geolocation"/>

    <access origin="http://www.test.es"/>

</widget>

我的www还包含cdv-plugin-fb-connect,facebook_js_sdk,img

0 个答案:

没有答案