cosenary / Instagram-PHP-API

An easy-to-use PHP Class for accessing Instagram's API.
http://cosenary.github.com/Instagram-PHP-API
BSD 3-Clause "New" or "Revised" License
1.46k stars 782 forks source link

Undefined property: stdClass::$pagination #173

Closed ghost closed 9 years ago

ghost commented 9 years ago

i dont understand how i can do the pagination for getPopularMedia()

code of my controller is

$popular = $this->instagram->getPopularMedia();
$testp = $this->instagram->pagination($popular);

when i return $testp i get a Undefined property: stdClass::$pagination error

what am i doing wrong ?

bodva commented 9 years ago

popular media does not have pages, see in instagram api documentation.

ghost commented 9 years ago

aahhhahah ok :D