title: Facebook api : FB.UI to post on wall
body: <p>I would like to give the possibility to the user to post on its wall on click of a link on my fanpage</p>
  
  <p>Below my main.php file  </p>
  
  <pre><code>&lt;div style="margin: 40px auto; width: 300px; border: 1px solid #c0c0c0; padding: 10px; overflow: hidden;"&gt;
      &lt;img src="http://graph.facebook.com/&lt;?php echo $uid; ?&gt;/picture" alt="&lt;?php echo $me['id']; ?&gt;" style="float: left; border-width:0px; margin-right: 10px;" /&gt;Bonjour Mr &lt;?php echo $meo['last_name']; ?&gt; !&lt;br /&gt;
      Selectionner vos photos YK ?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
      Votre identifiant &lt;?php echo $me['id']; ?&gt;
  &lt;/div&gt;
  &lt;div&gt;
      &lt;a onclick="publishWall();return false;" href="#"&gt;Poster un article sur mon mur via l'API Javascript&lt;/a&gt;
  &lt;/div&gt;
      ...
  &lt;script type="text/javascript"&gt;
      function publishWall(){
          FB.ui({
              method: 'stream.publish',
              message: '',
              attachment:{
                  name: "Démo Symfony+Facebook",
                  caption: '',
                  description: "Une démo simple d'application Facebook avec Symfony et les dernières API Javascript et PHP de Facebook.",
                  href: "http://www.lexik.fr/blog/symfony/non-classe/exemple-dapplication-utilisant-la-graph-api-de-facebook-1187"
              },
              user_prompt_message: "Application de démo Symfony+Facebook"},
              function (response) {}
          );
      }
  &lt;/script&gt;
  </code></pre>