title: facebook application post on user's wall with permission(publish/skip) php sdk
body: <p>i am creating a facebook application. i have managed an extended publish stream application. and i want to display the app results on user's wall. doing the method below, it automatically posts on the user's wall, i want to do it through the publish/skip dialog. could anyone please help me. thanks a lot!!</p>
  
  <pre><code>        $facebook-&gt;api('/me/feed', 'post', array(
          'message' =&gt; message,
          'name' =&gt; $fbme['first_name'],
          'description' =&gt; 'here goes description',
          'caption' =&gt; 'this is caption',
          'picture' =&gt; $imageurl,
          'link' =&gt; 'some link here',
  </code></pre>
  
  <p>//the next part, inviting friends. i want when the user clicks publish/skip only then a dialog window to apper to request to invite friends. i try it this way, but it does not work.</p>
  
  <pre><code>function(response) {
   if (response &amp;&amp; response.post_id) {
     alert('Post was published.');
     '&lt;?php echo("invitefriends.php")'
   } else {
     alert('Post was not published.');
     '&lt;?php echo("invitefriends.php")' 
   }
  </code></pre>
  
  <p>the problem i have is i get three windows and all of them simultaneously. invitefriends.php has the same code as mentioned in the javascript sdk example and it works fine. </p>
  
  <p>let me know where and how to include invitefriends.php.</p>
  
  <p>thanks!!</p>