Facebook sets cookies in order to provide a variety of services such as display of social media content, display of ads targeted at users, and analytics of user behavior on the website.