Media from a third user on Instagram
Showing error message... on purpose, mind you.
This instance of media_recent tag pair attempts to pull a user's images from Instagram, but shows an error because user 3 has not granted access to their photo stream.
Sample EE template code:
{exp:ig_picpuller:media_recent user_id='3' 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 »</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:
ERROR TYPE: UnauthorizedUser
ERROR MESSAGE: User has not authorized Pic Puller for access to Instagram.