【问题标题】:Issue starting to program for Facebook on PhoneGap (Eclipse)开始在 PhoneGap (Eclipse) 上为 Facebook 编程的问题
【发布时间】:2012-03-05 11:34:07
【问题描述】:

所以我在 Eclipse 上使用 PhoneGap,并且在“构建目录”开始编程时遇到了一些问题。我正在按照原始页面中的步骤进行操作,但我不明白某些要点(我是西班牙人,可能是语言问题)我通常可以处理它,但这次经过一些尝试后我没有任何其他机会而不是问。 所以这是教程页面https://github.com/davejohnson/phonegap-plugin-facebook-connect我卡在Android部分。


3.- 您需要构建 + 包含 Facebook Android SDK 并构建 + 修补 Facebook JavaScript SDK:

-First run *git submodule update --init* to initialize and pull down the versions of the JS and Android Facebook SDKs that work with this plugin; they will end up under lib/.
-Next, build the JS file. cd lib/facebook-js-sdk and run php all.js.php >> ../facebook_js_sdk.js. This will create the JS SDK file under lib/facebook_js_sdk.js. Please note: the output filename is important as the patch assumes that filename!
-cd .. and apply the patch file by running patch < facebook-js-patch.

这是命令git submodule update --init。我不确定在哪里运行它,我已经在所有项目目录中的终端上尝试过,但它总是返回相同的问题:fatal: Not a git repository (or any parent directory): .git

如果有人知道这一点并且可以帮助我,我将非常感激! 谢谢。

【问题讨论】:

    标签: eclipse facebook plugins cordova command


    【解决方案1】:

    很遗憾,这些构建说明已经过时,需要更新,因为其余步骤不起作用。此外,如果您使用的是最新的 phonegap(现在是 cordova-1.5.0.js),您将再次遇到问题。

    如果您使用的是 Mac,这将很容易。只需点击您在上面提供的 github 链接。单击“在 mac 中克隆”按钮。你必须先安装 github for mac!完成后,选择要克隆的位置并开始克隆。现在你有了master的最新消息。由于我使用的是cordova(最新的phonegap build),我需要cordovachanges 分支。在 github 应用程序中,您应该能够在 cordovachanges 分支上单击分支 > 下拉菜单并切换到它。现在所有的插件代码应该主要是最新的。他们仍在修补和修复问题。

    遵循新的方向。当您到达构建 + 包含部分时,只需打开终端,cd 到 git 项目被克隆到的位置,然后“git submodule update --init”将更新子模块。从那里,方向应该有效。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-07-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多