Making friends is hard, online as irl. It takes another person who is more or less on the same wavelength, whose temperament matches yours, who is in the right time, who frequents the same spaces or media. Sure, there are extroverted people who make friends really easy, but for some of us, it's very difficult to find someone with whom a good conversation can happen. For this reason, I have found it very important to take care of those friendships one has.
I do think online friendships can be real friendships. They are of course not the same as meatspace friends, they necessarily have different dynamics, but they are still real. One can still share with them and get to know another person's perspectives and way of life. I regret having lost a few online friends with whom I've gotten along nicely. Online friendships are quite precarious, as it is very easy to disappear completely without a word. I obviously consider ghosting to be a very rude thing to do, which means I won't be ghosting anyone and I will always try to reply to texts and emails, even if it takes me a long time to do so.
Workspace friends are kind of like that too, one of them quits, or gets fired, and, even if you were good friends, it's good as over. You suddenly go from seeing them every day to having incompatible schedules and working on the other end of town. I have one and only one formal job in my life. I had a few friends, and I genuinely liked them: There was Mike the buff short chicano guy, sweetest guy I've ever met. There was Angel, who looked like the devil and worked the graveyard shift. And there was Pitayo, who got fired for telling the nurse he had smoked some weeed.
My street friends were also bound by mostly work, now that I think about it. We worked in the same plaza, or we performed together, and with some of them I lived together, of course. Friendship gets built by inhabiting the same space, and often, by engaging in similar activities. Online friendships, I think, are built similarly, it just happens that the spaces and activities are carried out on the computer.
So, in order to keep friends online, I guess it's best to keep the focus on inhabiting the kinds of spaces you share with your friends. In my case, 100% of my online time is spent on small web sites, mostly blogs. So: reading and writing blogs is what I do. And as I have said before, even writing on blogs is a way to keep a conversation going, both with fiends one talks to directly, as well as a bunch of anonymous friends you don't know you have. I think that's what they call a parasocial relationship? lol.