Open OmDharme opened 2 years ago
you need to compare the users you follow and the ones you are following, then just check the users that match.
like this:
const followers = await getFollowers(ig, 'rodriguesabner_');
const followings = await getFollowing(ig, 'rodriguesabner_');
const mutualFriends = [];
followers
.filter(follower => followings.some((following) => follower.pk === following.pk))
.forEach((follower) => mutualFriends.push(follower));
Is there a way to get mutual followers of an account?