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 781 forks source link

Count parameter in multiple methods aren't working #122

Closed ghost closed 9 years ago

ghost commented 9 years ago

I have successfully installed the example but when I am trying to use methods such as

If I am not specifying a number as a limit I receive to following as a result : object(stdClass)#4 (1) { ["meta"]=> object(stdClass)#5 (3) { ["error_type"]=> string(25) "APIInvalidParametersError" ["code"]=> int(400) ["error_message"]=> string(31) "Count must be larger than zero." } }

I have no problem specifying the number of item I need but I thought I might be missing something and if not, that we should correct the documentation.

vinkla commented 9 years ago

Thanks for reaching out. Seems Instagram recently has done something with their API. Until we address and fix this bug, you could try to specify the $limit parameter in the method calls.

This issue is also discussed in #120 and #121.

ghost commented 9 years ago

My bad. As this issue is addressed in other threads I'll close this one. Thanks for your help!

vinkla commented 9 years ago

No problem. I think it is good developers are reaching out. The more the better.