title: How to --> Offer a coupon for a Tweet
body: <p>I've seen recently a few times when companies offer either a download link or a coupon code for people that will tweet about it. It is all automated and I would like to do something like this but I'm not quite clear on the process.</p>
  
  <p>Usually you go to a page with a link. You click on a link and it asks if you would give permission for some Tweeter app to connect to your profile. You grant permission and it brings up a pre-composed twitter message, something like: "I just got a coupon to try out..." Once the twitter message is sent, you are re-directed to a page where you find your coupon code.</p>
  
  <p>I use PHP and can write whatever is needed to get this done.</p>
  
  <p>Anyone knows how it is all done?</p>
  
  <hr>
  
  <p>Update: </p>
  
  <p>OK, I downloaded <a href="http://code.google.com/p/oauth-php/still" rel="nofollow">http://code.google.com/p/oauth-php/still</a> not clear what to do next. </p>
  
  <p>I am trying to figure out startuing with this page: <a href="http://code.google.com/p/oauth-php/wiki/ConsumerHowTo#Two-legged_OAuth" rel="nofollow">http://code.google.com/p/oauth-php/wiki/ConsumerHowTo#Two-legged_OAuth</a></p>
  
  <p>The way I understand the process the following should take place in this order:</p>
  
  <ol>
  <li><p>I need a link somewhere on my site that will have an offer: "Send a Twit and receive a coupon", right?</p></li>
  <li><p>Once they click on the offer link, how do I populate a message into their twitter update window: "Trying out this tool for free: http"//mylink.com"?</p></li>
  <li><p>Once they submit Twitter post, I suppose I will have some settings that will redirect back to my site to a page with a coupon.</p></li>
  </ol>
  
  <hr>
  
  <p>UPDATE: switched to <a href="https://github.com/abraham/twitteroauth/" rel="nofollow">twitteroauth</a>, but still need help...</p>