SDKsWASM
Get friend profiles
Get friendship profiles for selected user IDs.
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 use userID to match each returned profile to the requested friend. See Get the friend list for complete field descriptions.
Use getUsersInfo() for a non-friend's public profile.
Was this page helpful?