/**
  * Get the lates images that the logged in user has liked
  * @param string $accessToken
  * @param int $count
  * @return Object
  */
 public static function getUserLikes($accessToken, $count = 30)
 {
     $InstaUsers = new InstaUsers($accessToken);
     $response = $InstaUsers->getSelfMediaLiked($count);
     $images = json_decode($response);
     return $images;
 }
Example #2
0
 /**
  * Get the lates images that the logged in user has liked
  * @param string $accessToken
  * @param int $count
  * @return Object
  */
 public static function getUserLikes($accessToken, $username, $count = 30)
 {
     $userid = self::getUserIdFromUserName($accessToken, $username);
     if ($userid != null) {
         $InstaUsers = new InstaUsers($accessToken);
         $images = $InstaUsers->getSelfMediaLiked($count);
         return $images;
     } else {
         return array();
     }
 }