potomak/jquery-instagram — pull request #2 by joeybaker (2012-01-06 19:27:06+00:00)
Title: Added the ability to paginate through results.

Instagram returns a an object called `pagination` that we can use to get more photos. This adds a settings called `next_url` which you can optionally populate to paginate through the results.

Note: for backward compatibility, the `onComplete` function now returns two parameters:

onComplete : function (res.data, res)

* `res.data` is an object that contains just the photos
* `res` is the full result, which contains the `pagination` object as well as the photos object. Really, we could do with just this param, but we don't want to kill older programs which expect the first param to be just the photos