Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warning with pagination #13

Open
DanielSmedegaardBuus opened this issue Mar 18, 2013 · 1 comment
Open

Deprecation warning with pagination #13

DanielSmedegaardBuus opened this issue Mar 18, 2013 · 1 comment

Comments

@DanielSmedegaardBuus
Copy link

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 ;)

@songpr
Copy link

songpr commented Nov 10, 2013

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) {
...
}
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants