I’ve deleted your other thread just to avoid dupes but can respond here.
Firstly, we are aware better Twitter integration is something people want so I will count this as a +1.
In the meantime this code works;
[lua]-- Function for URLencoding of message content
local function escape (s)
s = string.gsub(s, “([&=+%c])”, function ©
return string.format("%%%02X", string.byte©)
end)
s = string.gsub(s, " ", “+”)
return s
end
local tweetText = “This is the tweet message.”
local postBody = escape( tweetText )
local theNetwork = theNetwork or “twitter” – twitter is default
–local theString = string.gsub(message, “( )”, “%%20”)
if theNetwork == theNetwork or “twitter” then
native.showWebPopup(20, 20, display.contentWidth - 40, display.contentHeight - 90, “http://twitter.com/intent/tweet?text=”…postBody)
end[/lua]
I know it isn’t exactly what you want but soon we will hopefully be able to remedy that.
Peach
[import]uid: 52491 topic_id: 20726 reply_id: 81450[/import]