title: Send Gifts from PHP Facebook App?
body: <p>I need to be able to let users send each other gifts from my facebook app. I know how I'm going to store the gift data in the database, but I'm not sure how the user cans elect friends to send the gift to. </p>
  
  <p>First I tried this:</p>
  
  <pre><code>&lt;fb:fbml&gt;
  &lt;fb:request-form
    action="index.php" 
    method="POST" 
    invite="true" 
    type="YOUR APP NAME" 
    content="Your text goes here. &lt;?php echo htmlentities("&lt;fb:req-choice url=\"YOUR CANVAS URL\" label=\"Authorize My Application\"") ?&gt;" &gt; 
  &lt;fb:multi-friend-selector showborder="false" actiontext="Invite your friends to use YOUR APP NAME."&gt; 
  &lt;/fb:request-form&gt;
  &lt;/fb:fbml&gt;
  </code></pre>
  
  <p>And used :</p>
  
  <pre><code>$users = $_REQUEST['ids'];
  </code></pre>
  
  <p>to get the list of selected users on the POSTed page, but the code above also sends the request right away. I need to be able to generate links based on the users selected, then send the request.</p>
  
  <p>Any help on this would be greatly appreciated!</p>