An algorithm can be described as a definite procedure which assists the system in determining what content may be of interest to you.
They get the likes, the clicks, the time you spend scrolling through each post—the intricacies of social media use.