Reminder after posting a message on Twitter

advertisements

I am posting messgae to twiter via link: http://twitter.com/intent/tweet?source=webclient&text=Hello

I am interested in if it is possible to be redirected to some url after posting message? For example Facebook has "redirect_uri" parameter added to the URL. User is redirected to this URL after the meesage is posted on the wall.


You can use events binding for Web Intents to redirect to a url after tweeting.

window.twttr = (function (d,s,id) {
  var t, js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return; js=d.createElement(s); js.id=id;
  js.src="https://platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs);
  return window.twttr || (t = { _e: [], ready: function(f){ t._e.push(f) } });
}(document, "script", "twitter-wjs"));
twttr.ready(function (twttr) {
twttr.events.bind('tweet', function (event) { //redirect to your url  } );
});

Following links might help :

https://dev.twitter.com/docs/intents/events#events

https://dev.twitter.com/discussions/671