| 
<?php
session_start();
 
 if (!isset($_SESSION['AccessToken'])) {
 header('Location: redirect.php?op=getauth');
 die();
 }
 
 
 require_once 'Class.Instagram.php';
 
 $instgram  = new Instagram();
 $followingdata = json_decode($instgram->getFollowing(20));
 
 /* echo "<pre>";
 print_r($followingdata);
 echo "</pre>"; */
 
 include_once 'header.php';
 include_once 'leftmenu.php';
 ?>
 <div id="content">
 <div id="content_top"></div>
 <div id="content_main">
 <?php
 foreach ($followingdata->data as $feeddata) {
 
 ?>
 <h2>  </h2>
 <p> </p>
 <h3><img src="<?php echo $feeddata->profile_picture; ?>" width="60" height="60" caption="Profile Image">  <?php echo $feeddata->username; ?> </h3>
 <p> </p>
 <p><strong>Full Name: </strong><?php echo $feeddata->full_name; ?></p>
 <p> </p>
 
 <?php
 }
 
 if(count($followingdata->data)==0) {
 
 echo "<h2>Right Now You Are Not Following Any One. </h2>";
 }
 
 ?>
 </div>
 
 <?php
 include_once 'footer.php';
 ?>
 |