PHP code example of yizack / instagram-feed

1. Go to this page and download the library: Download yizack/instagram-feed 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/ */

    

yizack / instagram-feed example snippets



use Yizack\InstagramFeed;

$feed = new InstagramFeed(
  "long-lived-access-token" // Paste your long-lived-access-token here
);

$array = $feed->getFeed();

foreach ($feed->getFeed() as $value) {
    // your code
}

$array = $feed->getFeed("username,permalink,timestamp,caption,media_url");