phoneGapTwitterApp
phoneGapTwitterApp copied to clipboard
A way to create a twitter app with phonegap
PHONEGAP TWITTER APP This project serves as an example of how to create a twitter application or functionality within Phonegap using ChildBrowser.
This app will remember your Twitter authentication and allow you to tweet from your app.
I've created a blog post tutorial that goes into full detail. http://www.drewdahlman.com/meusLabs/?p=40
SET UP:
- Go to https://dev.twitter.com/apps and create a new app.
- Be sure to put in a callback URL ( doesn't have to be live )
- once set up go to "settings"
- Change the access to "Read-Write"
- put your in callback url
HOW TO SEE EXAMPLE:
- Download the GIT project
- Open the init.js file ( twitter/www/js/init.js )
- change lines 18,19,20 and 79
- open the xCode project and run!
HOW TO USE:
- Download the project from GIT
- The JS files in the "plugging" folder are what you will need.
- Grab the following files -
- ChildBrowserCommand.m
- ChildBrowserCommand.h
- ChildBrowserViewController.m
- ChildBrowserViewController.h
- Drag those into your xcode project into the plugins folder.
- Drag "ChildBrowser.bundle" and "ChildBrowserViewController.xib" into the resources folder.
- In your PhoneGap.plist create a new external host and set the value to *
- add a new Plugin KEY: ChildBrowserCommand VALUE: ChildBrowserCommand
- save!
ready to go!
enjoy!