title: You must specify a valid JavaScript API Domain as part of this key's configuration. in LinkedIn
body: <p>I try to create a MVC4 application with LinkedIn share option with callback option.</p>
  
  <p>i refer my script in my Layout.cshtml with my app id.</p>
  
  <pre><code>  &lt;script type="text/javascript" src="//platform.linkedin.com/in.js"&gt;
          api_key: APIkeyGOEShere
      &lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          function testme(count) {
              alert("That document has been shared: " + count + " times");
          }
      &lt;/script&gt;
  </code></pre>
  
  <p>But the firebug shows a message like below image</p>
  
  <p><img src="https://i.stack.imgur.com/wiZKw.jpg" alt="enter image description here"></p>
  
  <p>But i am sure my AppID is correct. I don't know what is the reason to appear this error.</p>
  
  <p><strong>Edits</strong> </p>
  
  <p>I place the api_key inside the single quote</p>
  
  <pre><code> &lt;script type="text/javascript" src="//platform.linkedin.com/in.js"&gt;
          api_key: 'APIkeyGOEShere'
      &lt;/script&gt;
  </code></pre>
  
  <p>But i get a different in firebug</p>
  
  <p><strong>Error: API Key is invalid throw new Error("API Key is invalid");</strong></p>
  
  <p>Any format need to place API key inside of the javascript.</p>
  
  <p>Please help.</p>