title: Post a message in Facebook with FB.api
body: <p>I have tried to post a message on my wall using FB.api. But I'm not getting any response. Could you please help me. Please check my code once.</p>
  
  <pre><code>function shareWithFacebook(content) {
      FB.api('/me/feed', 'post', {
          message: content
      }, function (response) {        
          if (!response || response.error) {            
              alert('Error : ' + response.error);
          } else {
              alert('Post ID: ' + response.id);            
          }
      });
      return false;
  }
  </code></pre>