Skip to main content
Use AmityFeedRepository to read feed-style post collections. The SDK exposes user feeds, community feeds, global feed, and custom-ranking global feed. Global feed and custom-ranking global feed are separate SDK entry points; the backend owns ranking behavior, and the client SDK selects which feed endpoint to query.

Feed APIs

TypeScript still exports queryGlobalFeed(), but the SDK source marks it deprecated. Use the live collection APIs for new integrations.

Parameters

Query Global Feed

Global feed returns a paginated collection of posts for the current user’s global feed surface. Use data type filters when your UI only needs a subset of post types, such as an image or video feed.

Query Custom-Ranking Global Feed

Use custom-ranking global feed when your app has enabled the backend-ranked global feed experience. The SDK does not expose ranking weights or formulas; it only requests the custom-ranking feed and returns the posts provided by the backend.

Query For You Feed

For You feed is a backend-personalized global feed for the current user. Ranking is owned by the backend; the SDK only requests the feed and returns the posts the backend provides. It is a network-level feature that must be enabled for your network before the feed returns content.
For You feed is a network setting. Read getForYouFeedSetting() on the client and only render the surface when the feed is enabled. If the feed is not enabled, the collection reports a feed-disabled error rather than an empty list — AmityForYouFeedDisabledError on TypeScript and Android, or the .forYouFeedDisabled error code on iOS (see below).
getForYouFeed() is a live collection that takes no query parameters. Page through results with the onNextPage / hasNextPage values from the callback; the default page size is 20 posts.
For You feed is available on TypeScript, iOS, and Android. It is not available in the current Flutter SDK.

Read the For You feed setting

getForYouFeedSetting() is a method on the client that reports whether the network has For You feed enabled. Use it to decide whether to render a For You tab or entry point at all.

Android Cache Invalidation

Android feed builders expose invalidateCache(true). Use it for deliberate refresh flows, such as pull-to-refresh, when the first page should not reuse the existing paging cache.
invalidateCache is an Android feed-query option in the current SDK surface reviewed for this page.

Notes

  • Use post query APIs when you need a specific user or community feed with richer filters such as tags, review status, or deletion state.
  • Dispose live collection subscriptions, notification tokens, and stream subscriptions when the screen is destroyed.
  • Treat custom-ranking behavior as backend-owned. Do not hardcode ranking assumptions in client UI logic.

Query Posts

Query user and community post collections with more filters.

Search Posts

Search posts semantically or by hashtag.