title: Linkedin 403 Forbidden Error while getting connections email and name in JSApi
body: <p>I'm trying to get email, name and picture from connections, but when the user authenticates, I get the error "GET <a href="https://api.linkedin.com/v1/people/~/connections:(picture-url,first-name,email-address)?count=30" rel="nofollow noreferrer">https://api.linkedin.com/v1/people/~/connections:(picture-url,first-name,email-address)?count=30</a> 403 (Forbidden) "</p>
  
  <p>I'm posting my code below.</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
  &lt;title&gt;Untitled Document&lt;/title&gt;
  &lt;script type="text/javascript" src="http://platform.linkedin.com/in.js"&gt;
      api_key: uey3banalp6s
      authentication: true
  &lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
  
      function loadData() {
      IN.API.Connections("me")
      .fields(["pictureUrl","firstName","emailAddress"])
      .params({"count":30})
      .result(function(result) {
      profHTML = "";
      for (var index in result.values) {
      profile = result.values[index]
      if (profile.pictureUrl) {
      profHTML += "email:" + profile.emailAddress;
      profHTML += "name:" + profile.firstName;
      profHTML += "&lt;img class=img_border height=30 align=\"left\" src=\"" + profile.pictureUrl + "\"&gt;";
      }
      }
      $("#connections").html(profHTML);
      });
      }
  
  &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;div id="connections"&gt;&lt;/div&gt;
      &lt;script type="IN/Login" data-onAuth="loadData"&gt;
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>