为PhoneGap构建安装Facebook Connect-是否正确?

为PhoneGap构建安装Facebook Connect-是否正确?,facebook,cordova,phonegap-plugins,phonegap-build,Facebook,Cordova,Phonegap Plugins,Phonegap Build,我的方法正确吗?我发现以下错误: Cordova variable does not exist. Check that you have included cordova.js correctly CDV variable does not exist. Check that you have included cdv-plugin-fb-connect.js correctly FB variable does not exist. Check that you have include

我的方法正确吗?我发现以下错误:

Cordova variable does not exist. Check that you have included cordova.js correctly

CDV variable does not exist. Check that you have included cdv-plugin-fb-connect.js correctly

FB variable does not exist. Check that you have included the Facebook JS SDK file.
  • 我已经安装了我的Facebook应用程序。几年来,我一直通过PHPSDK使用Connect登录它。对于Phonegap构建(非手动),我是否也应该从Facebook下载javascript sdk,还是只需遵循以下步骤

  • 将此添加到我的config.xml

      <gap:plugin name="com.phonegap.plugins.facebookconnect">
      <param name="APP_ID" value="blah_app_id" />
      <param name="APP_NAME" value="blah_app_name" />
      </gap:plugin>
    
    并将它们放在我项目的根目录中,与我的index.html放在同一个位置

  • 从中的示例中复制index.html的body标记之间的代码,并将其放入my Phonegap Build的index.html中,以便进行测试

  • 正常情况下压缩并上传到PGB

  • 我遗漏了什么步骤或把事情搞砸了


    感谢您的关注。

    不,不要下载cordova facebook插件和facebook js sdk。它将在应用程序在云中构建时添加/附加。谢谢jeek。那么,它是如何访问facebook sdk的web应用程序版本的应用程序呢?如果你提到喜欢:但这些文件不在我的网站上。我知道PG Build如何在它们生成本机版本时添加它们,但我不需要将它们上载到我的网站以获得web应用程序版本吗?
    cdv-plugin-fb-connect.js
    facebook-js-sdk.js