Incase it's facebook chat you mean, you can alter the online status. (Online, Busy Appear Offline etc) (Set Chat Status)
But i guess you really mean sign out alltogether which as Big D5 says is a bit of a palaver with the inbuilt facebook integration.
If you stick with the Facebook app only, you can of course log out of that.