Facebook uses https://en.wikipedia.org/wiki/MQTT and you might be able to find some opensource clients for linux.