macuenca / Instagram-PHP-API

A PHP implementation of the official Instagram API
182 stars 60 forks source link

getUserRecent returns empty response #12

Open ghost opened 11 years ago

ghost commented 11 years ago

getUserRecent(USER_ID) returns the following (local testing) :

array( 'pagination' => array(), 'meta' => array( 'code' => (int) 200 ), 'data' => array() )

Any idea why ? Getting user data or follower list works ok...

macuenca commented 11 years ago

It could be several things:

  1. The subject does not exist
  2. Does not have any photos
  3. Has a private stream

Have you tried with a public profile user ID with several photos?

smth commented 10 years ago

I'm having the same problem. Code I'm using (in callback.php):

    $recent = $instagram->getUserRecent($_SESSION['InstagramAccessToken']);
    $response = json_decode($recent, true);
    var_dump($response);

This returns 'NULL'

My feed should return results, it does when accessed via the API URL directly, at least.