title: How can I integrate one of those "refer a friend" boxes into my facebook page and reward people for using it?
body: <p>So I have a client who wants to integrate something into his facebook page that will basically give a coupon to people for sharing the page with 3 or more friends.</p>
  
  <p>Ideally I'd like an interface similar to the way wildfire app does it with contests ala <a href="http://apps.facebook.com/contestshq/" rel="nofollow noreferrer">http://apps.facebook.com/contestshq/</a>  Here is a screenshot:</p>
  
  <p><img src="https://i.stack.imgur.com/zhqHD.jpg" alt="enter image description here"></p>
  
  <p>Basically I want this select your friends module to lead to a "thanks you did it, here's your coupon code: XXX" page.  Also, these coupons need to be unique so I can't just land the users on a static page it needs to somehow play with my PHP code.</p>
  
  <p>Any high level ideas on how to approach would be great.  I have fooled around a little with the Connect API but I'm not sure if that would be overkill or not.</p>
  
  <p><strong>UPDATE: Didn't really mention it but this should all take place in the facebook page [possibly in an iframe] without the end user leaving facebook.com</strong></p>