title: Displaying user information from Instagram PHP API
body: <p>Excuse the super-precise question but I'm fairly new at this and could use some help. I thought I was understanding everything until I hit this roadblock.</p>
  
  <p>I'm using <a href="http://www.9lessons.info/2012/05/login-with-instagram-php.html" rel="nofollow">9lesson's Instagram PHP Oauth tutorial</a>, which is built upon cosenary's Instagram PHP API class.</p>
  
  <p>Everything is running properly but I am trying to add a line which shows the logged-in user how many followers they have.</p>
  
  <p>I added this third line, copying the first two lines which already existed.</p>
  
  <pre><code>echo '&lt;b&gt;Profile Pic:&lt;/b&gt; '.$data-&gt;user-&gt;profile_picture.'&lt;/br&gt;';
  echo '&lt;b&gt;Access Token:&lt;/b&gt; '.$data-&gt;access_token.'&lt;/br&gt;';
  echo '&lt;b&gt;Followed by&lt;/b&gt; '.$data-&gt;user-&gt;counts-&gt;followed_by.'&lt;/br&gt;&lt;/div&gt;';
  </code></pre>
  
  <p>I added the last line under <code>$_SESSION['userdetails']=$data;</code></p>
  
  <pre><code>$followers =$data-&gt;user-&gt;counts-&gt;followed_by;
  </code></pre>
  
  <p>Why will this not return any data, even though it is the correct name for the endpoint? I feel like I've tried every possible combination of 10 things. Any help would be great!</p>