What's up with all the different cursors? #236
-
HI all, Just trying to understand the difference between the different cursors returned when getting the Inbox. The raw response contains: In Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @mycroftcanner, I'm assuming you're referring to direct related |
Beta Was this translation helpful? Give feedback.
Hey @mycroftcanner,
I'm assuming you're referring to direct related
Endpoint
s.The simplest response would be: "cause Instagram does this themselves".
Without going into much detail, let's take threads pagination as an example, as the mechanism for the inbox is slightly more complicated as there's a lot of boilerplate code in the response that is never actually used (I'm assuming it comes down to the several iterations of the messaging API): using "oldest" and "newest" simply guarantees time-based sorting. Most times they'd be the same (as messages cannot be scheduled) but it's a neat bonus.