phonegap构建-没有定义facebookConnectPlugin [英] phonegap build - facebookConnectPlugin not defined

查看:76
本文介绍了phonegap构建-没有定义facebookConnectPlugin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用phonegap构建以最简单的方式安装Facebook集成.

I am trying to install a facebook integration in the simplest way with phonegap build.

执行以下操作:

  1. 将此添加到config.xml:

<gap:plugin name="com.phonegap.plugins.facebookconnect" version="0.9.0">
  	  <param name="APP_ID" value="****************" />
   	  <param name="APP_NAME" value="******" />
	</gap:plugin>

  1. 确保该插件出现在phonegap构建上已安装的插件上:
    它应该出现了.
    插件源版本最新平台
    com.phonegap.plugins.facebookconnect pgb 0.9.0 0.9.0 android,ios
  1. made sure the plugin appears on installed plugins on phonegap build:
    it appears as it should.
    Plugin Source Version Latest Platforms
    com.phonegap.plugins.facebookconnect pgb 0.9.0 0.9.0 android,ios

根据文档,我应该完成这两个步骤: https://github.com/Wizcorp /phonegap-facebook-plugin/blob/master/platforms/pg-build/README.md

those two steps are all I should have done according to documentation: https://github.com/Wizcorp/phonegap-facebook-plugin/blob/master/platforms/pg-build/README.md

但是当我尝试使用插件时,出现"ReferenceError:facebookConnectPlugin未定义"

but when I try to use the plugin I get "ReferenceError: facebookConnectPlugin is not defined"

我错过了什么吗?其他人遇到过这种情况吗?

Did I miss anything? Anyone else encountered this situation?

谢谢.

推荐答案

我还没有机会尝试这个,但是这个版本().当前版本为0.12.0.您可以指定此版本,也可以省略该版本以使用此特定版本,但是出于推荐的目的,我现在将继续尝试使用0.9.0.

I haven't had a chance to try this yet, but this version ("0.9.0") was released last year in November. It is currently up to version 0.12.0. You can either specify this version or omit it to use this particular version, but for the sake of its recommendation, I am going to stick with trying 0.9.0 for now.

如果您检查此存储库,请查看文件夹:

If you inspect this repository, look to the folder:

./www/phonegap/plugin/facebookConnectPlugin/

./www/phonegap/plugin/facebookConnectPlugin/

因此,今晚我将尝试为 facebookConnectPlugin.js 包括<script>.从源头看,它似乎具有Facebook JS文件的依赖性,因此请做好准备首先将其包括在内.

So tonight I"ll be trying to include the <script> for the facebookConnectPlugin.js. Looking to the source, it appears to have the dependency of the Facebook JS file, so prepare your head to include that first.

在今晚尝试之前,请让我知道您是否尝试过此操作,以及它是否成功.祝你好运!

Let me know if you try this and if it succeeds or fails before I try it tonight. Good luck!

这篇关于phonegap构建-没有定义facebookConnectPlugin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆