title: Add share on facebook button on webpage
body: <p>I am trying to add fb share in drupal site i want to do it with javascript so I followed following steps</p>
  
  <ol>
  <li>Created on app page through Facebook developer</li>
  <li>There I have created app and got appid and code to put on my template following is the code</li>
  </ol>
  
  
  
  <pre><code>&lt;script&gt;
  (function(d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id)) return;
        js = d.createElement(s); js.id = id;
        js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.5&amp;appId=myappid";
        fjs.parentNode.insertBefore(js, fjs);
      }(document, 'script', 'facebook-jssdk'));
    &lt;/script&gt;
  </code></pre>
  
  
  
  <p>I am getting: </p>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot read property 'fb_app_id' of undefined this error in
    console</p>
  </blockquote>
  
  <p>Do I need to link any other js file something I am missing because of that share button not coming </p>