You never can really know what's behind a face. Just remember that. People talk about "judging" others when they say not to try to figure out why someone did something that was questionable. But the same applies to how we look at others. Everyone has their own problems and issues that can make them feel bad behind the picture perfect smile and profile that you might see on facebook.
The only way you are going to deserve friends is to make yourself a happy person and available to other people. You don't know for sure that the other people that were your classmates are all doing better than you are....but it is up to you to realize that you don't have to be the way you are and if you really want to, you can be happy.
And don't compare yourself to other people. That's never the way to go. Every single person is different and has their own special qualities and purpose in the world. Trying to be like other people is what is going to drag you down. Be who you are and be happy about it....and people will be drawn to you for that and think that you are amazing, because quite frankly you are, especially when you are brave enough to love who you are and not be afraid of the acceptance scale.