PHP code example of alpanayotov / instagram-helper
1. Go to this page and download the library: Download alpanayotov/instagram-helper 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/ */
alpanayotov / instagram-helper example snippets
$client_config = array(
'user_name' => 'instagram_user_name',
'client_id' => 'instagram_client_id',
'client_secret' => 'instagram_client_secret',
);
$client = Instagram_Helper\Factory::create( 'client', $client_config );
$data_manager = Instagram_Helper\Factory::create( 'data_manager', array( 'limit' => 5 ) );
$data_manager->fetch_user_feed();
$feed = $data_manager->get_feed_data(); //the data from instagram in now available in $feed