title: Get large profile picture from linked in API using php
body: <p>I am using the following to get information from linkedin API :</p>
  
  <pre><code>$user = fetch('GET', '/v1/people/~:(firstName,lastName,pictureUrl,headline,emailAddress,publicProfileUrl)');
  </code></pre>
  
  <p>For the pictureUrl I am getting a small image (80px x 80px) even though a larger one was uploaded. How can I get the larger images?</p>
  
  <p>I have looked around StackExchange and see mention of <em>picture-urls::(original)</em> but can't seem to get that to work, perhaps I am using it wrong. This is what i tried :</p>
  
  <pre><code>$user = fetch('GET', '/v1/people/~:(firstName,lastName,pictureUrls::(original),headline,emailAddress,publicProfileUrl)');
  </code></pre>
  
  <p>On the API page here <a href="https://developer.linkedin.com/documents/profile-fields#profile" rel="nofollow">https://developer.linkedin.com/documents/profile-fields#profile</a> it says to use "first-name" for example, but that doesn't give me any results except for returning "0". So this doesn't work :</p>
  
  <pre><code>$user = fetch('GET', '/v1/people/~:(first-name)');
  echo $user-&gt;first-name;
  </code></pre>
  
  <p>and this doesn't work :</p>
  
  <pre><code>$user = fetch('GET', '/v1/people/~:(firstname)');
  echo $user-&gt;firstname;
  </code></pre>
  
  <p>but this does :</p>
  
  <pre><code>$user = fetch('GET', '/v1/people/~:(firstName)');
  echo $user-&gt;firstName;
  </code></pre>
  
  <p>Where is this formatting even coming from, I can't see it listed in linkedin API pages, I found it on some obscure website after an extensive google search.</p>