Feed from a single user on Instagram
An Instagram user's feed includes the user's images, images of the users they follow, and images they have 'liked'. These photos can be brought into Expression Engine with InstaShowEE with the user_feed tag pair.
Sample EE template code:
{exp:ig_picpuller:user_feed 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>
<p>{full_name}, {ig_username}</p>
<p><img src="{ig_profile_picture}" alt='Photo of {ig_full_name}'/></p>
<p><img src="{ig_low_resolution}" alt="Low rez image of {ig_caption}" width="320" height="320" /></p>
<p><a href="{ig_link}">See the photo on Instagram.</a></p>
{if 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/feed/{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:user_feed}
Resulting rendered HTML:
1: #arrivals #trainstations #shesaidsomethingNY
Photo id: 460197224467759193_307515351
Likes: 1
Comment count: 0
Mary-Catherine Jones, mcjones13


2: Q says "i hate it when dad's right" #toomuchstuff #newhaven #trainstations
Photo id: 460193408062160908_307515351
Likes: 2
Comment count: 0
Mary-Catherine Jones, mcjones13


3: #citibike #car #parking #nyc #newyork looks like one car uses the space of six bikes. (Not for much longer. A guy is calling the tow truck as I am typing this.) three cars will be removed soon.
Photo id: 460162479558500823_6065775
Likes: 12
Comment count: 0
Witold Riedel, witoldriedel

