title: LinkedIN Integration JS API
body: <p>We are integrating with Linked IN to extract the users profile. Its working fine, but we notice in some Windows 7 / IE 9 machines, Linked IN pop up comes up and is blank. We see the below error in console.</p>
  
  <p>Message: Object doesn't support property or method 'replace'
  Line: 861
  Char: 17
  Code: 0
  URI: <a href="http://platform.linkedin.com/js/framework?v=0.0.2000-RC1.21420-1403&amp;lang=en_US" rel="nofollow">http://platform.linkedin.com/js/framework?v=0.0.2000-RC1.21420-1403&amp;lang=en_US</a></p>
  
  <p>Code Snippet Below</p>
  
  <pre><code>&lt;script type="text/javascript" src="https://platform.linkedin.com/in.js?async=false" &gt;
    api_key: tw6oqfav7ms1
    authorize:false  
  &lt;/script&gt; 
  
  //We have a custom image for linkedIN, onclick of the same below code is called.
  $("#mylinkedin").click(function () {
    IN.UI.Authorize().params({"scope":["r_fullprofile", "r_emailaddress","r_contactinfo"]}).place();
    IN.Event.on(IN, "auth", onLinkedInAuth);
  });
  
  function onLinkedInAuth() {    
      IN.API.Profile("me").fields([ "id","firstName", "location","lastName","skills","positions","educations","languages","phone-numbers","certifications","emailAddress","mainAddress"]).result(displayProfiles);
      IN.User.logout(); //After we take the data, we do a log out
      $.get("https://api.linkedin.com/uas/oauth/invalidateToken");
  }
  
  function displayProfiles(profiles) {
   //Access profile and process
   member = profiles.values[0]
   ...........
  }
  </code></pre>