Twitter

Get help using Construct 2

Post » Wed Jul 01, 2015 9:43 am

Or just experiment with the URL as given earlier.

Each parameter after the "?" is like a variable.
"original_referer=" is like the URL of your game where it is currently being executed.
You can cheat and have that parameter as :
"https://twitter.com/intent/tweet?original_referer=" & browser.URL &

Where Browser.URL will automatically fill in the URL for you. Beware during your test on local though, the returned URL will likely be "http://localhost".

"&text= My text " & myVariable & "blabla"
The message of the tweet itself and concatenation to add the value of a variable.

That's all that's needed.

If you make your text "&[email protected] I scored " & myScore & " points" this will send a message directed to the "@MyGame" account. It still can be seen publicly, but if @MyGame is configured to get notifications it will receive some as the message is tweeted.

Last moderation note: Please don't create multiple topics on the same subject, prefer to keep all your related questions into a single and same topic.
Merging them to reduce forum's noise.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
296
S
119
G
96
Posts: 7,328
Reputation: 71,298

Post » Thu Jul 02, 2015 10:40 am

I want to go directly to @mygame account but without putting forward @mygame
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Sat Jul 18, 2015 5:10 am

@Kyatric Do you know how to get callback from Twitter if the user already shared his tweet or cancelled?
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Sat Jul 18, 2015 11:14 pm

@joannesalfa: No.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
296
S
119
G
96
Posts: 7,328
Reputation: 71,298

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests