Media from a second user on Instagram

The media_recent tag pair pulls a single user's images from Instagram. This example shows a 2nd user's photos pulled from the same installation of Pic Puller.


Sample EE template code:

{exp:ig_picpuller:media_recent user_id='2' 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: You can never have too many .nets.

Photo id: 629370906_17515710

Likes: 0

Comment count: 0

See the photo on Instagram.

2: Best Web Type

Photo id: 629360562_17515710

Likes: 0

Comment count: 0

See the photo on Instagram.

3: Pixels are wonderful.

Photo id: 629354312_17515710

Likes: 0

Comment count: 0

See the photo on Instagram.