/contain-facebook

Facebook Container isolates your Facebook activity from the rest of your web activity in order to prevent Facebook from tracking you outside of the Facebook website via third party cookies.

Primary LanguageJavaScriptMozilla Public License 2.0MPL-2.0

Facebook Container

Prevent Facebook from tracking your visits to other websites

Facebook Container is an add-on you can install on Firefox to prevent Facebook from tracking your activity on other websites, so you can continue to use Facebook while protecting your privacy.

Note: To learn more about Containers in general, see Firefox Multi-Account Containers.

How does Facebook Container work?

The Add-on keeps Facebook in a separate Container to prevent it from following your activity on other websites. When you first install the add-on, it signs you out of Facebook and deletes the cookies that Facebook uses to track you on other websites.

Every time you visit Facebook, it will open in its own container, separate from other websites you visit. You can login to Facebook within its container. When browsing outside the container, Facebook won’t be able to easily collect your browsing data and connect it to your Facebook identity.

How do I enable Facebook Container?

We’ve made it easy to take steps to protect your privacy so you can go on with your day.

  1. Install Facebook Container. This will log you out of Facebook and delete the cookies it’s been using to track you.
  2. Open Facebook and use it like you normally would. Firefox will automatically switch to the Facebook Container tab for you.
  3. If you click on a link to a page outside of Facebook or type in another website in the address bar, Firefox will load them outside of the Facebook Container

How does this affect Facebook’s features?

Facebook Containers prevents Facebook from linking your activity on other websites to your Facebook identity. Therefore, the following will not work:

“Like” buttons and embedded Facebook comments on other websites.

Because you are logged into Facebook only in the Container, “Like” buttons and embedded Facebook comments on other websites will not work.

Logging in or creating accounts on other websites using Facebook

Websites that allow you to create an account or log in using Facebook will generally not work properly.

Will this protect me from Facebook completely?

This add-on does not prevent Facebook from mishandling the data it already has or permitted others to obtain about you. Facebook still will have access to everything that you do while you are on facebook.com or on the Facebook app, including your Facebook comments, photo uploads, likes, and any data you share with Facebook connected apps, etc.

Other ad networks may try to link your Facebook activities with your regular browsing. In addition to this add-on, there are other things you can do to maximize your protection, including changing your Facebook settings, using Private Browsing and Tracking Protection, blocking third-party cookies, and/or using Firefox Multi-Account Containers extension to further limit tracking.

How do I use Containers for other websites?

Good news! Containers aren’t just for Facebook. You can use Containers to prevent websites from linking your identities across the Web by installing Firefox Multi-Account Containers.

To learn more about how Multi-Account Containers work, see our support page at Firefox Multi-Account Containers.

Development

  1. npm install
  2. ./node_modules/.bin/web-ext run -s src/

Testing

npm run test

or

npm run lint

for just the linter

Building

  1. npm run build
  2. use the add-on zip file generated in the web-ext-artifacts folder

Links