User info from Instagram

Access a user's profile information from Instagram.


Sample EE template code:

{exp:ig_picpuller:user user_id='1' use_stale_cache='yes'}
	{if ig_status == 'true'}
	<h2>{count}: {ig_username}</h2>
	<p><img src="{ig_profile_picture}" alt='Image of {ig_full_name}'/></p>
	<p><a href="{ig_website}">See my website</a></p>
	<p>{ig_full_name}</p>
	<p>{ig_counts_media} photos in total</p>
	<p>followed by {ig_counts_followed_by}</p>
	<p>follows {ig_counts_follows} other Instagram users</p>
	<p>Instagram user id {ig_id}</p>
	{/if}
	{if ig_status == 'false'}
		<p>ERROR TYPE: {ig_error_type}</p>
		<p>ERROR MESSAGE: {ig_error_message}</p>
	{/if}
{/exp:ig_picpuller:user}

Resulting rendered HTML:

1: johnfmorton

Image of John Morton

See my website

John Morton

276 photos in total

followed by 123

follows 75 other Instagram users

Instagram user id 1500897