initialsgames Posted December 9, 2013 Share Posted December 9, 2013 Hello Phasers! I'd like to be able to tweet from in the game. Twitter allows you to make buttons like this: <a href="https://twitter.com/intent/tweet?button_hashtag=feedingtime&text=It's%20feeding%20time!" class="twitter-hashtag-button" data-url="http://www.initialsgames.com/feedingtime">Tweet #feedingtime</a> Is there anyway to tweet from in the game, or pass a variable from in the game to this button. I'd like to tweet my score. Link to comment Share on other sites More sharing options...
XekeDeath Posted December 10, 2013 Share Posted December 10, 2013 We are using jQuery to post ajax requests from within Phaser, you could do the same to post to Twitter. Link to comment Share on other sites More sharing options...
@99golems Posted December 11, 2013 Share Posted December 11, 2013 I'm not sure about having a tweet button in-game, but here's how to link your score to the standard tweet button on the webpage your game is located (just posted this morning).http://slouchcou.ch/?p=318 Link to comment Share on other sites More sharing options...
Recommended Posts