是可能得到这个Facebook插件使用纯phonegap应用程序 [英] Is it possible to get this facebook plugin working with pure phonegap app

查看:97
本文介绍了是可能得到这个Facebook插件使用纯phonegap应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个基本问题。我很困惑。我不明白一件事。 Phonegap应用程序是纯html5和javascript。但对于此插件( https://github.com/ davejohnson / phonegap-plugin-facebook-connect / tree / master / example / HackBook )工作,我们需要单独的java代码为android和xcode为ios。

This might be really a basic issue. I am kind of confused. I don't understand one thing. Phonegap app is pure html5 and javascript. But for this plugin (https://github.com/davejohnson/phonegap-plugin-facebook-connect/tree/master/example/HackBook) to work we need separate java code for android and xcode for ios.

我得到的java版本的Android教程使用模拟器,但当我只是复制资产文件夹构建一个纯phonegap应用程序。这是行不通的。

I got the java version of the android tutorial working with the simulator but when I just copy the assets folder to build a pure phonegap app. it does not work.

然后,如果我仍然需要维护两个代码行,它会击败目的。

Then it beats the purpose if i still have to maintain 2 code lines.

这个插件的JavaScript代码不支持phonegap应用程序,没有java或xcode。

Does just the html and JavaScript code in this plugin is not supported by phonegap app without java or xcode.

这是我的手机差距应用程序。你可以下载它。 https://build.phonegap.com/apps/211586/share

Here is my phone gap app. you can download it. https://build.phonegap.com/apps/211586/share

我在git repositoryiry中的代码在这里

My code in the git repositiry is here

https://bitbucket.org/sunmeet/phonegab2.0_fbapi

推荐答案

仅限PhoneGap构建服务最近支持ChildBrowser,条形码扫描器,Google Analytics(分析)。

PhoneGap Build service only Supports ChildBrowser , Barcode Scanner, Google Analytics recently.

如果您尝试使用任何外部插件HTML / CSS / JS,你不能使用它们与PhoneGap构建服务。但是,PhoneGap Team正试图在未来版本中推出像Facebook Connect这样的不同插件。

if you try to use any external plugin which needs assets other than HTML / CSS / JS, you can't use them with PhoneGap Build Service. But, PhoneGap Team are trying to push out different plugins like Facebook Connect in Future Releases.

因此,他们给Deveopers两个选项。

So, here they gave two Options to Deveopers.


  • 使用子浏览器并执行Facebook OAuth验证。

  • 在本地构建。
    Andriod开发环境是EclipseIOS
    开发环境是XCode(OS:MacOS)

我建议你使用第一个选项,一旦插件是我们的构建服务,它真的很容易集成随时。

I Suggest you to work with first option and once plugin is our from build service its really easy to integrate anytime.

这篇关于是可能得到这个Facebook插件使用纯phonegap应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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