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.
To query public profiles for non-friends, use Get user profiles.
Was this page helpful?