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

Example doesn't work #96

Open Sneffel opened 9 years ago

Sneffel commented 9 years ago

Fatal error: Uncaught exception 'Exception' with message 'Error: _makeCall() | users/self/media/recent - This method requires an authenticated users access token.' in /membri/spippetta/file/instagram/src/Instagram.php:457 Stack trace: #0 /membri/spippetta/file/instagram/src/Instagram.php(165): MetzWeb\Instagram\Instagram->_makeCall('users/self/medi...', 0, Array) #1 /membri/spippetta/file/instagram/example/success.php(35): MetzWeb\Instagram\Instagram->getUserMedia() #2 {main} thrown in /membri/spippetta/file/instagram/src/Instagram.php on line 457

it's the error

Sneffel commented 9 years ago

fix'd somethin' but $result->data is NULL

cosenary commented 9 years ago

Hi, it seems that you try to use a authenticated method (This method requires an authenticated users access token), without having set an OAuth token. Thus, I guess your authentication process failed. Could you please give us some more details?