title: Get my instagram posts with the likes of a particular user mgp25/Instagram-API
body: <p>I am use <code>mgp25/Instagram-API</code></p>
  
  <p>How can l get my instagram posts with the likes of a particular user?</p>
  
  <p>My code:</p>
  
  <pre><code>set_time_limit(0);
  date_default_timezone_set('UTC');
  require __DIR__.'/vendor/autoload.php';
  
  $username = 'myInstagramUsername';
  $password = 'myInstagramPassword';
  $debug = false;
  $truncatedDebug = false;
  
  $ig = new \InstagramAPI\Instagram($debug, $truncatedDebug);
  try {
      $ig-&gt;login($username, $password);
  } catch (\Exception $e) {
      echo 'Something went wrong: '.$e-&gt;getMessage()."\n";
      exit(0);
  }
  try {
  
      $userId = $ig-&gt;people-&gt;getUserIdForName($username);
      $act = json_encode($ig-&gt;people-&gt;getRecentActivityInbox(), true);
      ???????
  
  } catch (\Exception $e) {
      echo 'Something went wrong: '.$e-&gt;getMessage()."\n";
  }
  </code></pre>