Browse SDKs · WASM
SDKsWASM

Get friend profiles

Get friendship profiles for selected user IDs.

Copy
const { data: friends } = await openimsdk.getSpecifiedFriendsInfo({
  friendUserIDList: userIDs,
  filterBlack: true,
});

The successful Promise returns the matched FriendUserItem[]. The array is not guaranteed to correspond positionally to the input IDs, so merge it by userID. See Get the friend list for complete field descriptions.

Use getUsersInfo() for a non-friend's public profile.