title: Linkedin Oauth Javascript authorization "uh oh!"
body: <p>I can't login on my app with Linkedin, i see modal linked dialog with "uh oh!"
  What to do? Why don't work linkedin Oauth?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function onLinkedInLoad() {
    IN.Event.on(IN, "auth", function() {onLinkedInLogin();});
    IN.Event.on(IN, "logout", function() {onLinkedInLogout();});
  }
  function onLinkedInLogin() {
    IN.API.Profile("me")
      .fields(["id", "firstName", "lastName", "pictureUrl", "publicProfileUrl", "emailAddress"])
      .result(function(result) {
  
        console.log(firstName);
      })
      .error(function(err) {
        alert(err);
      });
  }
  function liAuth(){
    // 
     IN.User.authorize(function(){
         callback();
     });
     //IN.UI.Authorize().place();
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script type="text/javascript" src="https://platform.linkedin.com/in.js"&gt;
      api_key: 54545645645646
      authorize: false
      onLoad: onLinkedInLoad
  &lt;/script&gt;
  
  &lt;div onclick="liAuth()" class="loginsocbutton loginsocbutton__in" id="oauth_linkedin"&gt;click&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>