If you're talking about Facebook chat in the Messaging hub, you usually have to deactivate and activate Battery saver at least two times, go back to chat, click the icon at the bottom to change to offline, then click online again (at least in my experience)