title: Javascript sdk auto pubblish on facebook wall
body: <pre><code>&lt;script&gt;
    function postToWall() {
      var params = {};
      params['message'] = 'hello visit lol';
      params['name'] = 'cazzo frega';
      params['link'] = 'http://apps.facebook.com/xxxxxxxxxxxxxxxx/';
      params['picture'] = 'http://2.gravatar.com/avatar/7da5bead8xxxxxxxxxxxxxx75bac';
      params['description'] = 'test di frase';
  
      FB.api('/me/feed', 'post', params, function(response) {
        if (!response || response.error) {
          alert('lol');
        } else {
          alert('ok');
        }
      });
    }
  &lt;/script&gt;
  
  &lt;div id="fb-root"&gt;&lt;/div&gt;
  &lt;script src="http://connect.facebook.net/en_US/all.js"&gt;&lt;/script&gt;
  &lt;script&gt;
    FB.init({ 
      appId:xxxxxxxxxxxxxxx, cookie:true, 
      status:true, xfbml:true
    });
  &lt;/script&gt;
  &lt;a href="javascript:postToWall()"&gt;click&lt;/a&gt;
  </code></pre>
  
  <p>post on wall of facebook a message whidouth show the box dialog.
  But if i want get it in automatic, whidouth click?
  i have try whit body onload="javascript:fucntion(); but get an error... you have any idea?</p>