title: Parsing the venues from foursquare /user/self/checkins data
body: <p>I'm trying to get the data of my users venues (the details about the venues from the users checkins information). 
  I'm using the user access token to get the data. This is the code I'm using:</p>
  
  <pre><code>if($_GET['code']){
  $authkey = file_get_contents("https://foursquare.com/oauth2/access_token?   client_id=".$client_id."&amp;client_secret=".$secret."&amp;grant_type=authorization_code&amp;redirect_uri=".$redirect."&amp;code=".$_GET['code']);
  $decoded_auth = json_decode($authkey,true);
  $venueinfo = file_get_contents("https://api.foursquare.com/v2/users/self/checkins?oauth_token=$access_token&amp;v=$version");
  $decoded_venueinfo = json_decode($venueinfo, true);
  foreach ($decoded_venueinfo-&gt;response-&gt;checkins-&gt;items-&gt;venue as $result){
      echo $result-&gt;name;
          echo $result-&gt;id;
          echo $result-&gt;location-&gt;address;
          echo $result-&gt;location-&gt;city;
          echo $result-&gt;location-&gt;country;    
      }
  }
  </code></pre>
  
  <p>I get a blank page. I've tried to add "else" to the end of the first "if" with echo "error", and I got it displayed, so I guess my "if" statement condition is false.
  I'm fairly new to PHP and I learn as I go. Any help will be deeply appreciated.</p>