galen / PHP-Instagram-API

PHP 5.3+ wrapper for the Instagram API
338 stars 159 forks source link

Deprecated parameter when trying to get media from tag collection #60

Closed Norbz closed 7 years ago

Norbz commented 7 years ago

API returns a deprecated warning when not specifying the parameters :

Called : $tag = $instagram->getTag( 'nofilter' ); print_r($tag->getMedia());

Result :

Object@
(
    [pagination:protected] => stdClass Object
        (
            [deprecation_warning] => next_max_id and min_id are deprecated for this endpoint; use min_tag_id and max_tag_id instead
        )

    [data:protected] => Array
        (
        )

    [position:protected] => 
)
Norbz commented 7 years ago

My bad, thought this was the reason I was getting no data.

For people wondering, in sandbox mode you can't access public timeline from users, so if you are looking for a tag you and your invited user are not using, you won't get any results