The science behind social media platforms