예제 #1
0
/**
 * Created for php-instagram-feed
 * User: Danny Hearnah
 * Author: Skyblue Creations Ltd.
 *
 * Date: 15/07/2015
 * Time: 08:24
 */
require 'class/InstagramFeed.php';
$username = '******';
$instagram = new InstagramFeed($username);
// print a selection of images
$offset = 0;
$limit = 10;
$media = $instagram->getMedia($offset, $limit);
if ($media) {
    ?>
	<ul>
		<?php 
    foreach ($media as $m) {
        ?>
			<li>
				<img src="<?php 
        echo $m['display_src'];
        ?>
"><br>
				<?php 
        echo $m['caption'];
        ?>
<br>