Build up the dogs confidence through ball games, tug, cycling, swimming. Exercise it a lot. Avoid any aggressive movements towards him.
When you walk in the room with the dog ignore it for a while. NO touch, no talk or eye contact for 5 minutes will take the pressure off the dog. He'll start to feel less like the center of attention.
Ask you friends to do the same. Some of you might have been rough housing or correcting the dog and this started to happen. Don't feel sorry for the dog as it will simply get over it soon.
Good not to even verbally correct the dog for a while. Use a gentle voice. Let the dog come to you rather than you going to it or calling it to you
One dog i know who had this turned out to be fine. She grew out of it.