title: Invite friends to use app by list of ids, with PHP
body: <p>I wish to manage the friends invitations to use a facebook app, in PHP.</p>
  
  <ul>
  <li>I saw the <a href="https://developers.facebook.com/docs/reference/dialogs/requests/" rel="nofollow">documentation for JS</a> </li>
  <li>And already saw the <a href="https://developers.facebook.com/docs/reference/fbml/request-form/" rel="nofollow">request form doc</a> </li>
  <li>I've already saw a lot of questions in stackoverflow.</li>
  </ul>
  
  <p>But I can't find a good answer, because I don't wish to display those facebook dialog box !</p>
  
  <p>First : Is it possible to do it in PHP, without displaying the facebook dialog box ?</p>
  
  <p>I get the friends list with the following (user is already connected/allowed the app)</p>
  
  <pre><code>include("../config/fb_config.php");
  
  $facebook = new Facebook(array(
    'appId'  =&gt; $fbconfig['appid'],
    'secret' =&gt; $fbconfig['secret'],
    'cookie' =&gt; true,
  ));
  
  $friends = $facebook-&gt;api('me/friends');
  
  foreach($friends['data'] as $users)
  {   
      echo "&lt;input type=\"checkbox\" name=\"".$users['id']."\"/&gt; 
               ".$users['name']."&lt;br/&gt;";
  }
  </code></pre>
  
  <p>Is there any facebook url/method to send the invite requests, with checked ids and a message ?</p>
  
  <p>Or something like the "publish a message on the user wall"</p>
  
  <blockquote>
    <p>$facebook->api('/me/feed', 'post', array('message'=>'blabla...');</p>
  </blockquote>