I use ublock origin to block ads and ghostery to block a lot of trackers, theres some configurability to block some stuff from social media accounts maybe it will help..?
Or, you can tell it to allow JavaScript from Facebook while you're on Facebook's site, but not when you're on other sites.
I find both uBlock Origin and uMatrix to be useful.