title: Invalid version specified, facebook share plugin error
body: <p>I want to use the facebook share plugin for the web app I am working on, I only need the basic share button. The app uses requirejs for loading javascript, so I followed the <a href="https://developers.facebook.com/docs/javascript/howto/requirejs" rel="noreferrer">how-to</a> and changed the facebook api url to the one found in code snippets on facebook <a href="https://developers.facebook.com/docs/plugins/share-button/" rel="noreferrer">docs</a>. This doesn't work and the sdk throws error <code>invalid version specified</code>. This is how my files look.</p>
  
  <p><strong><code>main.js</code></strong></p>
  
  <pre><code>require.config({
    shim: {
      'facebookshare' : {
        exports: 'FB'
      }
    },
    paths: {
      'facebookshare':  "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.0"
   }
  });
  require(['fb']);
  </code></pre>
  
  <p><strong><code>fb.js</code></strong></p>
  
  <pre><code>define(['facebookshare'], function(facebook) {
     document.body.innerHTML += '&lt;div class="fb-share-button" data-href="https://developers.facebook.com/docs/plugins/" data-layout="button"&gt;&lt;/div&gt;';
  });
  </code></pre>
  
  <p>What is the best way of including only the facebook share plugin with requirejs?</p>
  
  <p>I referred following questions, but none of them provide a concrete solution. <a href="https://stackoverflow.com/questions/23668541/uncaught-error-no-version-specified-facebook-sdk">Uncaught error: no version specified</a> and <a href="https://stackoverflow.com/questions/24019877/fb-init-function-gives-wrong-version-error">wrong version error</a>.</p>