Twitter is not a B-Corp indeed. However any company, not just B-Corps, can have a purpose other than shareholders value maximization. Check this article: https://doi.org/10.1111/joms.12660
There's an easily searchable index of B-Corps: https://www.bcorporation.net/en-us/find-a-b-corp