title: How to add facebook share button on my website?
body: <p>I have this code that suppose to work, but doesn't work.</p>
  <pre><code>&lt;script src='http://connect.facebook.net/en_US/all.js'&gt;&lt;/script&gt;
      &lt;p&gt;&lt;a onclick='postToFeed(); return false;'&gt;&lt;img src=&quot;images/fb.png&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
      &lt;p id='msg'&gt;&lt;/p&gt;
  
      &lt;script&gt; 
        FB.init({appId: &quot;338334836292077&quot;, status: true, cookie: 
  
  true});
  
        function postToFeed() {
  
          // calling the API ...
          var obj = {
            method: 'feed',
            redirect_uri:'https://www.facebook.com/cryswashington?fref=ts',
            link:'https://developers.facebook.com/docs/reference/dialogs/',
            picture: 'http://fbrell.com/f8.jpg',
            name: 'Facebook Dialogs',
            caption: 'Reference Documentation',
            description: 'Using Dialogs to interact with users.'
          };
  
          function callback(response) {
              
          document.getElementById('msg').innerHTML = &quot;Post ID: &quot; + response['post_id'];
          }
  
          FB.ui(obj, callback);
        }
      
      &lt;/script&gt;
  </code></pre>
  <p>I want to add facebook share button on my website, that should just post my website's content on the wall. Can anyone help me?</p>