Hello,
I have been implementing Twitter into my app, and ran into some trouble getting OAuth and all that other stuff to work well. So, while I was looking for other solutions, I found this code on Peach Pellen’s blog, which is basically the equivalent of a “Tweet” button on a website, that allows me to open a web popup and set a default text for the user to tweet.
[lua]local function escape (s)
s = string.gsub(s, “([&=+%c])”, function ©
return string.format("%%%02X", string.byte©)
end)
s = string.gsub(s, " ", “+”)
return s
end
tweetText = “This is the default text of your tweet”
local postBody = escape( tweetText )
local theNetwork = theNetwork or “twitter” – twitter is default
–local theString = string.gsub(message, “( )”, “%%20”)
TwitterButtonRelease = function(event)
if theNetwork == theNetwork or “twitter” then
native.showWebPopup(0, 35, 480, 285, “http://twitter.com/intent/tweet?text=”…postBody)
end[/lua]
As you can see, it directs the user to a link on twitter, when the user is requested to login, and then is prompted to tweet the text.
(You can try it out here)
I was wondering if there is an equivalent to this code that works for Facebook.
I would love to avoid using Facebook connect, because Facebook recently decided that my account was under a fake name (Which it is not), and I have to submit an appeal to them. I have heard that appeals can take weeks to complete, but I would like to get my app out sooner than that.
So, if anyone knows a link that allows you to set the text for the user to post to Facebook, please help.
Thanks in advance! [import]uid: 38000 topic_id: 19775 reply_id: 319775[/import]


[import]uid: 70635 topic_id: 19775 reply_id: 77744[/import]