从 jQTouch / Phonegap iPhone 应用程序发布 Twitter 和 Facebook 更新

发布于 2024-09-05 09:57:08 字数 273 浏览 1 评论 0原文

我正在使用 jQTouch 和 Phonegap 编写一个简单的 iPhone 应用程序,我计划通过 App Store 发布该应用程序。

部分计划功能将允许用户使用应用程序的输出(一些文本,可能是链接)更新他们的 Twitter 或 Facebook 状态。

在我开始推出自己的解决方案之前,是否有任何 JS 库或插件(或其他任何东西)可以使这变得更加简单?我尝试了一些谷歌搜索,但没有找到任何结果。所有的身份验证/错误处理代码的想法有点令人畏惧。

谢谢,

詹姆斯。

I'm using jQTouch and Phonegap to write a simple iPhone app which i'm planning to release through the App Store.

Part of the planned functionality will let the user update their twitter or facebook status with the output of the App (some text, possibly a link).

Before I go ahead and start rolling my own solution, are there any JS libraries or plugins (or anything else) out there which will make this a lot simpler? Ive tried a few Google searches which havent turned up anything. The thought of all the authentication / error handling code is a bit daunting.

Thanks,

James.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

月朦胧 2024-09-12 09:57:08

我最终使用 ChildBrowser 插件实现了 facebook 和 twitter 登录,以作为移动网站进行身份验证。

如果这对某人感兴趣,我可以写一篇关于它的博客文章。

http://github.com/purplecabbage/PhoneGap-Plugins/tree/master/ ChildBrowser/

更新:
我刚刚发表了博客文章:http://www.pushittolive。 com/post/1239874936/facebook-login-on-iphone-phonegap

希望它有意义,它解释了如何使用 facebook 登录。如果有人感兴趣的话我可以做一个关于 Twitter 登录的,但基本上是一样的。

干杯,塞巴斯蒂安

I endup implementing facebook and twitter login using the ChildBrowser plugin to authenticate as a mobile web site.

If this interesting for someone I could write a blog post about it.

http://github.com/purplecabbage/PhoneGap-Plugins/tree/master/ChildBrowser/

Update:
I just made the blog post: http://www.pushittolive.com/post/1239874936/facebook-login-on-iphone-phonegap

Hope it make sense, it explains how to login with facebook. I could make one about twitter login if someone is interested, but is basically the same.

Cheers, Sebastian

秉烛思 2024-09-12 09:57:08

我一直在尝试做同样的事情,FB 提供 API 的唯一方法是本机代码或移动网站。两者之间没有(PhoneGap)。除了为 Twitter 和 Facebook 编写 PhoneGap 插件(难度适中)或为您的应用程序建立一个网站并从那里转发请求之外,我似乎不可能做到这一点。

我自己决定使用 Facebook 和 Twitter 的示例 iPhone 代码编写一个 PhoneGap 插件。

I have been trying to todo the same thing, the only methods FB provides API's for is native code, or a mobile web site. There is no in between (PhoneGap). I't appears its not possible besides writing a PhoneGap plugin for Twitter and Facebook (which is moderately difficult) or standing up a web site for your application and forwarding requests from there.

I myself decided to write a PhoneGap plugin using Facebook and Twitter's sample iPhone code.

开始看清了 2024-09-12 09:57:08

我尝试将 ChildBrowser 与 Phonegap/Android 一起使用,但由于 API 不匹配而无法工作(iPhone 版本具有用于加载完成等的事件处理程序,但 Android 版本没有)。

但我使用 Phonegap Facebook 插件进行连接,效果完美。

我只是参考我之前的博客文章,其中包括一步步介绍如何在 Phonegap 环境中连接到 facebook:
http://blog.lagentz.com/phonegap/facebook-authentification- inside-phonegap-android/

希望这有帮助,
格雷戈尔

I tried using the ChildBrowser with Phonegap/Android, but it didn't work due to API mismatches (the iPhone-version has event handlers for load finished etc, but the Android version doesn't).

But I used the Phonegap Facebook plugin to connect and it worked flawlessly.

I just refer to my earlier blog post which includes a step by step introduction how to connect to facebook inside a Phonegap environment:
http://blog.lagentz.com/phonegap/facebook-authentification-inside-phonegap-android/

Hope this helps,
Gregor

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文