Twitter posting through the third party site

Monkey Forums/Monkey Programming/Twitter posting through the third party site

Alex(Posted 2012) [#1]
Hello!

Using diddy's LaunchBrowser, there's a possibility to send messages to Twitter through addtoany.com URL.

Here's my Function:
Function TwPost(twMessage:String, twURL:String, twPopup:Bool)
	
	Local fullURL:String = "http://www.addtoany.com/add_to/twitter?linkurl="+twURL+"&linkname="+twMessage+"&linknote="+twMessage+""
	LaunchBrowser(fullURL, twPopup)
	
End


Important: diddy module should be in modules folder.
http://code.google.com/p/diddy/


Fryman(Posted 2012) [#2]
nice,

there was an issue with my similar facebook code on ios, (with spaces) here is the fix in your code

Function TwPost(twMessage:String, twURL:String, twPopup:Bool)
	
	Local fullURL:String = "http://www.addtoany.com/add_to/twitter?linkurl="+twURL+"&linkname="+twMessage+"&linknote="+twMessage+""
	LaunchBrowser(fullURL.replace(" ","%20"), twPopup)
	
End




Alex(Posted 2012) [#3]
yes, forgot this, as I typed all with "%20" =)
thanks!