Secure and flexible framework for decentralized social network services