Media from a single user on Instagram

The media_recent tag pair pulls a single user's images from Instagram.


Sample EE template code:

{exp:ig_picpuller:media_recent user_id='1' limit='3' max_id='{segment_3}' use_stale_cache='yes'}
	{if ig_status == 'true'}
	<h2>{count}: {ig_caption}</h2>
	<h3>Photo id: {ig_media_id}</h3>
	<p>Likes: {ig_likes}</p>
	<p>Comment count: {ig_comment_count}</p>
	<h4>Next Max id (used for pagination): {ig_next_max_id}</h4>
	<p><img src="{ig_low_resolution}" alt="" width="320" height="320" /></p>
	<p><a href="{ig_link}">See the photo on Instagram.</a></p>
		{if ig_next_max_id != ''}
			{if count == total_results}
			<!-- Note that /code/ in the line below refers to template group this template lives in -->
			<a href="/code/media_user_1/{ig_next_max_id}" class='btn primary' >Next set &raquo;</a>
			{/if}
		{/if}
	{/if}
	{if ig_status == 'false'}
		<p>ERROR TYPE: {ig_error_type}</p>
		<p>ERROR MESSAGE: {ig_error_message}</p>
	{/if}
{/exp:ig_picpuller:media_recent}

Resulting rendered HTML:

1: Nicely said.

Photo id: 460291177037302505_1500897

Likes: 6

Comment count: 0

Next Max id (used for pagination): 457383646136764688_1500897

See the photo on Instagram.

2: I see a pink elephant.

Photo id: 458581614554646718_1500897

Likes: 1

Comment count: 0

Next Max id (used for pagination): 457383646136764688_1500897

See the photo on Instagram.

3: A Tribute to Bobby Short at JALC

Photo id: 457383646136764688_1500897

Likes: 1

Comment count: 0

Next Max id (used for pagination): 457383646136764688_1500897

See the photo on Instagram.

Next set »