1. Go to this page and download the library: Download pecee/instagram-sdk library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
// Set user access token
$instagram->setAccessToken($data);
// Get all user likes
$likes = $instagram->getUserLikes();
// Take a look at the API response
echo '<pre>';
print_r($likes);
echo '<pre>';