The key here is to not force your dog to interact with new people. More than anything, this will require communication with your friends.
If you are having friends over to your home, start with only one or two people at a time. Give them a heads up that they should completely ignore your dog when they come into your home, even if your dog comes over to check them out.
Next, you’ll want to give your friends some really yummy food or treats to toss towards your dog. If, after a few tosses, your dog approaches them they can toss a piece of food by their feet or perhaps feed your dog from their hand.
From here, have them use a patterned approach: toss a few treats 5 ft away, then toss a few treats at their feet. Once your dog is comfortable hanging out in the vicinity of your friends, you can ask your friends to start consistently feeding your dog from their hands
Lastly, make sure you give your dog a safe space to retreat to if they are uncomfortable. A crate or a bed in a separate room with a Himalayan chew on is a great option. No one should ever approach your dog beside you when he’s in his safe space.