Uses the library mgp25/instagram-php
To display the result of a given method (JSON):
?_=account_getCurrentUser
To display the list of medias:
?_=collection_getFeed&collectionId=COLLECTION_ID&_gallery
Check if curl module is available
ls -la /etc/php5/mods-available/
If it is, enable the curl module
sudo php5enmod curl
If not, install it
sudo apt-get update
sudo apt-get install php5-curl
Restart Apache
sudo service apache2 restart
Check if you have composer
composer
If not, install it
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar composer
composer install