In this article, we'll explain how to prevent Facebook users from chatting with you, seeing most of your activity, or communicating with you on Facebook via a web browser.
How to Hide Your Profile on Facebook
Under normal circumstances, the friends you see in the chat area can see that you are online. But you can change these settings so that some or all of these friends cannot see that you are available to chat. Use this feature if you want to be on Facebook without interruptions. You can turn off chatting for all of your friends, just some of them, or for everyone with a few exceptions.
Select Messenger from the left pane of Facebook.
Select the Settings icon.