Instagram-PHP-API icon indicating copy to clipboard operation
Instagram-PHP-API copied to clipboard

getUserRecent returns empty response

Open ghost opened this issue 13 years ago • 2 comments

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...

ghost avatar Dec 10 '12 22:12 ghost

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?

macuenca avatar Dec 10 '12 22:12 macuenca

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.

smth avatar Apr 13 '14 10:04 smth