# Global Feed SDK Pagination

**URL:** <https://forum.social.plus/t/global-feed-sdk-pagination/1770>\
**Category:** TS SDK\
**Created:** [August 4, 2025, 2:51am UTC](https://forum.social.plus/t/global-feed-sdk-pagination/1770 "2025-08-04T02:51:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenGannaway](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@BenGannaway](https://forum.social.plus/u/BenGannaway)\
**Post date:** [August 4, 2025, 2:51am UTC](https://forum.social.plus/t/global-feed-sdk-pagination/1770/1 "2025-08-04T02:51:25Z")

</div>

The global feed FeedRepository.queryGlobalFeed doesn’t seem to have the pagination functions that the other query functions do. _onNextPage_, _hasNextPage are always undefined._

How should I paginate this feed?

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [August 4, 2025, 6:22am UTC](https://forum.social.plus/t/global-feed-sdk-pagination/1770/2 "2025-08-04T06:22:20Z")

</div>

Hello @BenGannaway , For `queryGlobalFeed`, pagination works via the `queryToken`. If there’s more data, a token will be returned in the response. You can use it like this:

```auto
 const data = await FeedRepository.queryGlobalFeed({ limit: 10, queryToken: 'xxxx'});

```

---

<div class="post-metadata">

**Author:** ![BenGannaway](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@BenGannaway](https://forum.social.plus/u/BenGannaway)\
**Post date:** [August 4, 2025, 10:46am UTC](https://forum.social.plus/t/global-feed-sdk-pagination/1770/3 "2025-08-04T10:46:38Z")

</div>

Hi,

For me it seems like it always returns the “next” token, but eventually calling that returns the beginning of the feed again. Am I misunderstading something? It works ok initially.

Is this documented anywhere?

---

<div class="post-metadata">

**Author:** ![BenGannaway](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@BenGannaway](https://forum.social.plus/u/BenGannaway)\
**Post date:** [August 4, 2025, 11:37am UTC](https://forum.social.plus/t/global-feed-sdk-pagination/1770/4 "2025-08-04T11:37:09Z")

</div>

In fact I can see that the last “next” token it generates is the same as the “previous” token from page 2 so it makes sense that it loads page one again. How should I handle this?

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [August 5, 2025, 9:33am UTC](https://forum.social.plus/t/global-feed-sdk-pagination/1770/5 "2025-08-05T09:33:43Z")

</div>

Hello @BenGannaway , For this issue, we suggest you double-check the tokens, as sometimes the “next” and “previous” tokens can appear similar but are not exactly the same. If you find that the tokens are truly identical in your case, please share your request payload with us so we can investigate further.

Let us know if you need any more assistance!
