Adding an attribute value to a share url

hosoji

  • Posts: 15
So I made a button that opens a Twitter URL which has the text "My highscore is " followed by the Game attribute. I used the [text&text] block with the share url and pre-written text in one and the [GameAttribute as text] in the other but that basically opened the Twitter Url with the first part of the text but not the highscore.
I'm aware that this isn't perhaps the best practice to begin with as the user can alter their score from the Twitter page before they post. So my question is two-fold: How can I get the attribute value into the URL? (code block?) and: Is there a better way of doing this without allowing the user to alter the score value? (Maybe using  REST APIs?)

sdieters

  • Posts: 2068
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

hosoji

  • Posts: 15
So I got the first part to work, it now tweets the "My highscore is [value]."
Still not sure how to go about getting it to post the highscore without letting the user edit it prior to tweeting.

sdieters

  • Posts: 2068
Can you show us how you post to twitter in the first place?
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

hosoji

  • Posts: 15
Pay no mind to my IF statement (which I need for my menu).
Just look at the Open URL block

sdieters

  • Posts: 2068
Where did you find the documentation how to tweet like that?
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p