Skip to content
Basic twitter iOS 5 integration as a titanium module
Objective-C Python JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Classes
assets
documentation
example
hooks
platform
tweet.xcodeproj
.gitignore
.project
.pydevproject
DeMarcelpociotTwitter_Prefix.pch
LICENSE
README
build.py
manifest
module.xcconfig
timodule.xml
titanium.xcconfig

README

Twitter iOS 5 Module for Appcelerator Titanium
======================

DESCRIPTION
=======================
This is a really basic iOS 5 twitter integration.
It currently only supports the tweetSheet view.
You can attach images and urls.

Simply download the zip file and integrate the module in your Titanium project.

USAGE
========================
var module	= require('de.marcelpociot.twitter');
module.tweet({
	message: 	'Hey, this is some cool tweet!',
	urls: 		['http://www.marcelpociot.de'],
	images:		['http://www.marcelpociot.de/logo.png'],
	success:		function(){
		alert("Tweet successfully sent");
	},
	cancel:		function(){
		alert("User canceled tweet");
	},
	error:		function(){
		alert("Unable to send tweet");
	}
});
// To access the accounts:
module.accounts({
	load: function(e){
		for( var i =0; i<e.accounts.length; i++ ){
			var account = e.accounts[i];
			alert(account.username);
			alert(account.description)
		}
	},
	error: function(e){
		alert("access not granted");
	}
});

TODO
========================
Twitter call's are now working, but for the moment only unsigned requests.
There's still a problem when you want to add multiple images or URLs.

ABOUT THE AUTHOR
========================
I'm a web enthusiast located in germany.
Follow me on twitter: @marcelpociot
Something went wrong with that request. Please try again.