Using Twitter to post individual data

I would like to use the built in Twitter so a player can tweet their score or special recruitment code.  How do I enter it into the Twitter message?

Score=9999

local options = {
message = “Hello Twitter world!”
}
native.showPopup( “twitter”, options )

also I would like to do this for email sharing to.  Would it be the same?  Thanks!

also does it work on Android now?  It says in Feb 11 2013 it only works on ios.

I can’t find any documentation for you, but in my experience it’s always best practice to share an image of the score, rather than text of the score. This is because the player can modify the text before posting, which gives them an opportunity to change the score. 

There will also be recruitment codes that will get user free gems from store.  So I would like that code to be shared via the text not an image.  Im sure their is a way to do it I just don’t know how.  Any other help will be much appreciated thank you!

My advice was assuming you wanted to use Corona APIs to share via social media. I’m fairly certain that the social popup delivered by Corona allows the user to review what is being posted on their behalf, which would allow them to edit the message. Maybe it was just my implementation, but I recently released a game that shared with the popup, and the player was always able to see and edit the content before posting.

You could use third-party modules (GGTwitter, being the most popular free option) but YMMV. I’ve used GGTwitter before and it’s a viable solution for folks with this need.

So this is true I cannot do something like this?

Code=987654321

 

local options = {
message = “Hello Twitter world this is my code… <Code>!”

}
native.showPopup( “twitter”, options )

 

I wouldnt want the user to edit anything, just send.

No reason why you can’t test it out on your own, but in my experience (and I just tested my app, “Segreta”, on Google Play, which uses this API) the user is able to modify the text before it’s sent. I’m not the authority on it, so I’d suggest you check it out yourself. 

I can’t find any documentation for you, but in my experience it’s always best practice to share an image of the score, rather than text of the score. This is because the player can modify the text before posting, which gives them an opportunity to change the score. 

There will also be recruitment codes that will get user free gems from store.  So I would like that code to be shared via the text not an image.  Im sure their is a way to do it I just don’t know how.  Any other help will be much appreciated thank you!

My advice was assuming you wanted to use Corona APIs to share via social media. I’m fairly certain that the social popup delivered by Corona allows the user to review what is being posted on their behalf, which would allow them to edit the message. Maybe it was just my implementation, but I recently released a game that shared with the popup, and the player was always able to see and edit the content before posting.

You could use third-party modules (GGTwitter, being the most popular free option) but YMMV. I’ve used GGTwitter before and it’s a viable solution for folks with this need.

So this is true I cannot do something like this?

Code=987654321

 

local options = {
message = “Hello Twitter world this is my code… <Code>!”

}
native.showPopup( “twitter”, options )

 

I wouldnt want the user to edit anything, just send.

No reason why you can’t test it out on your own, but in my experience (and I just tested my app, “Segreta”, on Google Play, which uses this API) the user is able to modify the text before it’s sent. I’m not the authority on it, so I’d suggest you check it out yourself.