getAllFollowings() answers that in one call: it returns the ID of each user the current user follows, with the follow’s status, accepted or pending. It is a status check, not a list of users. It returns no user profiles and no pages. To show a list of followings or followers, use the paginated following list query instead.
getAllFollowings() returns IDs and statuses only — no user profiles. Take names and avatars from the content you already show. For a paginated following list, see Get Follower/Following List.Parameters
Each item in the result has two fields:
A user who is not in the list is not followed by the current user, unless the current user has more than 5,000 follows and pending requests in total (see below).
The method has no status filter. It always returns
accepted and pending follows together. To use only one status, filter the result by status. For a paginated list of one status, use the following list query with a status filter. See Get Follower/Following List.
Get Follow Status for Many Users
CallgetAllFollowings() when a feed or list opens, then look up each user’s ID in the result to choose the button: no button for accepted, Pending for pending, and Follow when the user is missing.
The result holds up to 5,000 users, most recently changed first, counting both accepted follows and pending requests. If the current user has more than 5,000 in total, only the 5,000 most recently changed are returned, so a user missing from the result may still be followed or have a pending request. If follow requests are turned off for your network, every entry is accepted.
Keep Follow Status Current
getAllFollowings() returns a snapshot, not a live collection — it does not notify you when a follow changes. Call it again whenever you need fresh statuses, for example when more posts load or when the feed comes back into view.
Repeat calls are cheap:
- The SDK keeps the result for 5 minutes. Calls within that window answer from the device without a network request.
- Follows, follow requests, unfollows (including withdrawing a pending request), and blocks made through the SDK show in the next call at once.
- Changes made on another device, or by the other user — accepting a request, declining it, or removing the current user as a follower — show once the SDK receives the real-time event. These events arrive through the
BLOCKauto-subscription, which is on by default. - If you turn off the
BLOCKauto-subscription, those changes show on the next call after the 5-minute window ends. - Signing out clears the result, so the next session starts fresh.
Platform Notes
Not available on Flutter.
Related Topics
Get Follower/Following List
Page through followers and followings with user profiles.
Follow/Unfollow User
Change the follow status.
Manage Blocked Users
The same one-shot pattern for blocked users.