You're trying to help someone who lost his self-confidence by making him feel ridiculous. It can't work.
Advising someone lonely to "Go meet some people" is a bit like telling him to be happy. How do you do that? If he has trouble speaking to other people, a good start could be to talk to a psychologist or a priest or anyone whose job is to listen.