Block Facebook Beacon in Safari and Firefox
Since Facebook won’t provide you a way to opt-out of Beacon, their intrusive advertising platform, here’s how you can prevent them from harvesting data about you from other sites.
For Safari, first install the excellent PithHelmet plugin that lets you block sites, pages, cookies, and advertising with excellent granularity. It is not free, but well worth the $10. Go to PithHelmet preferences, right within Safari’s preference dialog.
In the next step, you’ll need the following Matching Pattern. Here it is for copy/paste convenience: