You mean the Messenger app or the actual Facebook app? Both are apps made by Facebook so you can chat. To turn off chat for Messenger, you have to log out. For the Facebook app, you have to either turn off refresh and message notifications, or log out.