I know that Facebook tries to collect data when browsing, even when you're not browsing Facebook itself.
I dislike this behaviour and therefore would like to prevent Facebook from gathering as much data as possible from me.
On the other hand, I don't want to completely ditch Facebook and keep as much of the website's functions as possible. At this point, I'm browsing Facebook daily.
I'm browsing Facebook with Firefox, running on Ubuntu 17.04.
How can I get this done?