Fieldtype, Module

Archived
Forum
(read-only)

Pic Puller for Instagram

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From John Morton

     

No data error when loading recent media from ig user id

Support Request

kooba
kooba

Hi,
I’m getting an error when I try to load recent media from a public account using the ig_user_id parameter.
My code is

{exp:ig_picpuller:media_recent limit="6" user_id="1" ig_user_id="1088353513" use_stale_cache="no"}
   {if ig_status 
== 'true'}
  
<img id="instagram-{count}" src="{ig_standard_resolution}" alt="" />
  
{/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} 

The error msg is:
ERROR TYPE: NoData
ERROR MESSAGE: There were no photos to return for that user.

I had to use the advanced authorisation option to authorise the app should that make any difference.
My feeling is that its telling me there’s no data as the IG account I’m using to create the app has no uploaded images…
Thanks for your help,
Christian

John F Morton
# 1
Developer
John F Morton

Hi Christian,

Using the alt auth method should still make your app function.

Can you try removing the

ig_user_id="1088353513" 

from your EE tag? This should make it pull in photos from the account you authorized with. I assume this will be your personal account. If you’ve got photos in your personal account, those should show up instead. Do they?

If they do, then let’s try another test by putting the ig_user_id back in but using the ID I use on the example page, http://picpuller.com/code/media_user_by_ig_user_id, 1484892436.

Does that Instagram ID return anything?

-John

kooba
# 2
kooba

Hi John,
thanks for your quick reply. Removing the ig_user_id results in my account photos getting loaded. Restoring the ig_user_id and setting it to ig_user_id=“1484892436” makes no difference, I still get my own account photos loading.
Christian

John F Morton
# 3
Developer
John F Morton

Ok, that’s helpful to hear your results.

The update that allowed the use of “ig_user_id” was a recent addition to Pic Puller. Can you log into your control and tell me what version of Pic Puller you are using? (That will be in the Add-ons > Modules screen.)

-John

kooba
# 4
kooba

Hi John,
that was the issue thanks, I hadn’t upgraded to 1.6.5 yet
Thanks!
Christian

John F Morton
# 5
Developer
John F Morton

Excellent! I’m glad we figured it out. Thanks for using Pic Puller! :-)