title: Disappearance of "Sign in with LinkedIn" button after log-in
body: <p>My goal is implement a social log-in button for the 3 big (Fb, LinkedIn, Twitter) and use data captured from social (email, first name, last name) to prefill a form inside the landing page.</p>
  
  <p>I have implemented a "Sign in with LinkedIn" Button with the following code:</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://platform.linkedin.com/in.js"&gt;
    api_key: {my api_key}
        onLoad: onLinkedInLoad
      authorize: true
  &lt;/script&gt;
  
     &lt;script type="text/javascript"&gt;
  function onLinkedInLoad() {
    IN.Event.on(IN, "auth", function() {onLinkedInLogin();});
    IN.Event.on(IN, "logout", function() {onLinkedInLogout();});
  }
  
  function onLinkedInLogout() {
    setLoginBadge(false);
  }
  
  function onLinkedInLogin() {
    // we pass field selectors as a single parameter (array of strings)
    IN.API.Profile("me")
      .fields("firstName", "lastName", "industry", "location:(name)", "picture-url", "headline", "summary", "num-connections", "public-profile-url", "distance", "positions", "email-address", "educations", "date-of-birth")
      .result(function(result) {
        setLoginBadge(result.values[0]);
      })
      .error(function(err) {
        alert(err);
      });
  }
  
  function setLoginBadge(profile) {
    if (!profile) {
      profHTML = "&lt;p&gt;You are not logged in&lt;/p&gt;";
    }
    else {
      var pictureUrl = profile.pictureUrl || "http://static02.linkedin.com/scds/common/u/img/icon/icon_no_photo_80x80.png";
    alert( profile.firstName);
    alert( profile.lastName);
     alert(profile.emailAddress);
  
        $("#field0").val(profile.firstName);
        $("#field1").val(profile.lastName);
        $("#field2").val(profile.emailAddress);
        $("#field3").val(profile.emailAddress);
  
       profHTML = "&lt;p&gt;&lt;a href=\"" + profile.publicProfileUrl + "\"&gt;";
      profHTML = profHTML + "&lt;img align=\"baseline\" src=\"" + pictureUrl + "\"&gt;&lt;/a&gt;";      
      profHTML = profHTML + "&amp;nbsp; Welcome &lt;a href=\"" + profile.publicProfileUrl + "\"&gt;";
      profHTML = profHTML + profile.firstName + " " + profile.lastName + "&lt;/a&gt;! &lt;a href=\"#\" onclick=\"IN.User.logout(); return false;\"&gt;logout&lt;/a&gt;&lt;/p&gt;";
    }
    document.getElementById("loginbadge").innerHTML = profHTML;
  }
  &lt;/script&gt;
  
      //LinkedIn Button
  
  
  &lt;script type="IN/Login"&gt;
  
  
    &lt;input type="hidden" id="fnameLinkedIn" name="linkedin-id" value="&lt;?js= firstName ?&gt;" /&gt;
    &lt;input type="hidden" id="lnameLinkedIn" name="linkedin-id" value="&lt;?js= lastName ?&gt;" /&gt;
  
    &lt;/script&gt;
  </code></pre>
  
  <p>The code works but the "Sign in with LinkedIn" Button disappears when I logged in with LinkedIN.
  I would mantain the LinkedIn button after the login.</p>
  
  <p>How can I avoid the disappearance of LinkedIn button?</p>
  
  <p>Thank You for the support.</p>
  
  <p>Alex</p>