PWesterdale / KirbyGram

Instagram Plugin for Kirby CMS
22 stars 3 forks source link

Issie with MediaResponse.php #17

Open ghost opened 9 years ago

ghost commented 9 years ago

this is the error im getting

Fatal error: Call to a member function get() on array in /home/byo78221/public_html/kingpinstyle.com/site/plugins/kirbygram/lib/Instagram/MediaResponse.php on line 16.

ghost commented 9 years ago

and this is the code im using in my footer

`<?php $instagram = new \Instagram();

// Get all of the IMAGES from my feed! $instagram->feed()->only('image')->get();

// Get the latest four images and videos from my feed! $instagram->feed()->limit(4)->get();

// Get the latest four images and videos from my feed except the first one! $instagram->feed()->limit(4)->offset(1)->get(); ?>`

steadweb commented 9 years ago

Sounds like a configuration issue. Can you confirm these have been setup correctly? Happy to debug if you provide config details.

timnarr commented 9 years ago

Why are you trying to get your feed three times, with different options?