最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Posting Twitter and Facebook updates from a jQTouchPhonegap iPhone app - Stack Overflow

programmeradmin0浏览0评论

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.

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.

Share Improve this question asked Jun 11, 2010 at 9:21 JamesJames 1251 silver badge5 bronze badges 1
  • do you have a working example connecting twitter? – user1003779 Commented Oct 19, 2011 at 18:13
Add a ment  | 

3 Answers 3

Reset to default 6

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./purplecabbage/PhoneGap-Plugins/tree/master/ChildBrowser/

Update: I just made the blog post: http://www.pushittolive./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

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.

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./phonegap/facebook-authentification-inside-phonegap-android/

Hope this helps, Gregor

发布评论

评论列表(0)

  1. 暂无评论