PHP code example of tofers / instagram-post-info
1. Go to this page and download the library: Download tofers/instagram-post-info 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/ */
tofers / instagram-post-info example snippets
use tofers\instagrampost\InstagramPostInfo;
$instagram_post = new InstagramPostInfo("https://www.instagram.com/p/CB7KzC6BPIn/");
echo 'instagram link: ' . $instagram_post->src;
echo '<br>';
echo '<br>';
echo 'Account name: ' . $instagram_post->account;
echo '<br>';
echo '<br>';
echo 'Image src: ' . $instagram_post->image;
echo '<br>';
echo '<br>';
echo 'Date post: ' . $instagram_post->date;
echo '<br>';
echo '<br>';
echo 'Like post: ' . $instagram_post->like;
echo '<br>';
echo '<br>';
echo 'Location: ' . $instagram_post->location;