title: Drupal generate commerce coupon programmatically
body: <p>I am using drupal with drupal commerce, when a user like the page with facebook like button, I generate a coupon and serve it to the client.</p>
  
  <p>All is going well atm. except for one thing, how do I generate a new coupon?</p>