instagram-node-lib icon indicating copy to clipboard operation
instagram-node-lib copied to clipboard

Deprecation warning with pagination

Open DanielSmedegaardBuus opened this issue 11 years ago • 1 comments

Hi :)

While testing this, I noticed that I get a deprecation warning returned in the pagination object, e.g.:

{ next_max_tag_id: '1363628109109',
  deprecation_warning: 'next_max_id and min_id are deprecated for this endpoint; use min_tag_id and max_tag_id instead',
  next_max_id: '1363628109109',
  next_min_id: '1363628110654',
  min_tag_id: '1363628110654',
  next_url: 'https://api.instagram.com/v1/tags/love/media/recent?name=love&client_id=<MYID>&max_tag_id=1363628109109' }

Just wanted to let you know ;)

DanielSmedegaardBuus avatar Mar 18 '13 10:03 DanielSmedegaardBuus

I saw the warning too.

I this case no code change is required. Just pass min_tag_id, or max_tag_id into parameters not min_id or max_id

instagram.tags.recent({ name: tag, min_tag_id: minTagId, complete: function(data, page) { ... }, error: function(errorMsg, error, caller) { ... } });

songpr avatar Nov 10 '13 07:11 songpr