Liked images from a single user on Instagram

Instagram user can like images taken by themselves and other Instagram users. These liked photos can be brought into Expression Engine with InstaShowEE with the user_liked tag pair.


Sample EE template code:

{exp:ig_picpuller:user_liked user_id='1' limit='3' max_id='{segment_3}'}
	{if status == 'true'}
		<h2>{count}: {caption}</h2>
		<h3>Photo id: {media_id}</h3>
		<h4>Next Max ID: {next_max_id}</h4>
		<p><img src="{profile_picture}" alt='Photo of {full_name}'/></p>
		<p>Photographer: {full_name}, <em>{username}</em>, id# {user_id}</p>
		<p>Website: {website}</p>
		<p><img src="{low_resolution}" alt="Low rez of image {caption}" width="306" height="306" /></p>
		<p><a href="{link}">See the photo on Instagram.</a></p>
		{if next_max_id != ''}
			{if count == total_results}
				<a href="/code/liked/{next_max_id}" class='btn primary'>Next set &raquo;</a>
			{/if}
		{/if}
	{/if}
	{if status == 'false'}
		<p>ERROR TYPE: {error_type}</p>
		<p>ERROR MESSAGE: {error_message}</p>
	{/if}
{/exp:ig_picpuller:user_liked}

Resulting rendered HTML:

1:

Photo id: 191438901189335857_156333

Next Max ID: 178000994102627003_12513

Photo of keketoledopiza

Photographer: keketoledopiza, keketoledopiza, id# 156333

Website:

Low rez of image

See the photo on Instagram.

2:

Photo id: 191795877093093903_299

Next Max ID: 178000994102627003_12513

Photo of Chris Harrison

Photographer: Chris Harrison, cd, id# 299

Website: http://cdharrison.info

Low rez of image

See the photo on Instagram.

3: Sculpture in galvanised iron (work in progress) by Natalie Kane (@nd_kane)

Photo id: 178000994102627003_12513

Next Max ID: 178000994102627003_12513

Photo of Aral Balkan

Photographer: Aral Balkan, aral, id# 12513

Website: http://aralbalkan.com

Low rez of image Sculpture in galvanised iron (work in progress) by Natalie Kane (@nd_kane)

See the photo on Instagram.

Next set »