From 62c5ae793269dbcc4bdd5b5cb12865a6546fda15 Mon Sep 17 00:00:00 2001 From: Mads T Marquart Date: Thu, 3 Nov 2016 19:16:58 +0100 Subject: [PATCH] Fixed _getSticky Facebook now requires channel and clientid to be passed when requesting a sticky pool. --- fbchat/client.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fbchat/client.py b/fbchat/client.py index 777de09..71f75cf 100644 --- a/fbchat/client.py +++ b/fbchat/client.py @@ -462,7 +462,11 @@ class Client(object): newer api needs these parameter to work. ''' - data = {"msgs_recv": 0} + data = { + "msgs_recv": 0, + "channel": self.user_channel, + "clientid": self.client_id + } r = self._get(StickyURL, data) j = get_json(r.text)