List of Friends

Brings your friends and their Bitmoji into the Lens, so a friend can appear on screen. Choose which friends: all of them, your best friends, or a random one.

Bitmoji & Friends

Bring Bitmoji avatars, friends, and social moments into your Lens.

Made with this block

Inputs

poolint

Determines which group of friends the block fetches from.

3 values
0
AllFriends – Fetches the user’s complete friends list.
1
BestFriends – Fetches only the user’s best friends.
2
ReplyFriends – Fetches friends from the current context (e.g., conversation).
orderingint

Defines how the fetched friends list is sorted.

7 values
0
BestFriendsFirst – Best friends appear first.
1
ReplyFriendsFirst – Friends from the current context appear first.
2
ByLastInteraction – Most recent interactions first.
3
ByLastInteractionReverse – Oldest interactions first.
4
RandomOrder – Randomized order.
5
LeastDurationOfFriendship – Shortest friendships first.
6
LongestDurationOfFriendship – Longest friendships first.

Functions

getFriendsObject

getFriends(limit: number): Promise<SafeSnapchatUser[]> Fetches the selected friend pool, applies the configured ordering, and optionally limits the result size. • Attempts to retrieve full SnapchatUser data first. • If fetching fails or is restricted, automatically falls back to SafeSnapchatUser data. • Applies the selected sorting strategy. • Returns up to limit friends (or all if limit is 0 or exceeds list size).