People will hate this suggestion on ideological grounds but a mandatory tax to fund an NGO is the way to go. Something like a $1/person/year tax is already plenty of money if you are just trying to maintain bare bones social networking platforms, without all the added surveillance and advertising machinery.