How to --> Offer a coupon for a Tweet

Viewed 1401

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.

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.

I use PHP and can write whatever is needed to get this done.

Anyone knows how it is all done?


Update:

OK, I downloaded http://code.google.com/p/oauth-php/still not clear what to do next.

I am trying to figure out startuing with this page: http://code.google.com/p/oauth-php/wiki/ConsumerHowTo#Two-legged_OAuth

The way I understand the process the following should take place in this order:

  1. I need a link somewhere on my site that will have an offer: "Send a Twit and receive a coupon", right?

  2. 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"?

  3. 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.


UPDATE: switched to twitteroauth, but still need help...

4 Answers
Related