PHP code example of jahudka / libigfeed
1. Go to this page and download the library: Download jahudka/libigfeed 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/ */
jahudka / libigfeed example snippets
// create a HTTP client:
$httpClient = new GuzzleHttp\Client();
// create an instance of the client:
$client = new IgFeed\Lib\Client(
$httpClient,
$instagramAppId,
$instagramAppSecret,
$cacheDir . '/instagram.token' // the library will store the token
// obtained during the OAuth authentication flow in this file
);