From b4e3b1aca33213f3a30465feb4700084a57aaafb Mon Sep 17 00:00:00 2001 From: thekindlyone Date: Thu, 1 Sep 2016 18:57:00 +0530 Subject: [PATCH] getUserInfo fixed for py3 --- fbchat/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fbchat/client.py b/fbchat/client.py index 7f49166..74ad356 100644 --- a/fbchat/client.py +++ b/fbchat/client.py @@ -566,7 +566,7 @@ class Client(object): data = {"ids[{}]".format(i):user_id for i,user_id in enumerate(user_ids)} r = self._post(UserInfoURL, data) info = get_json(r.text) - full_data= [details for profile,details in info['payload']['profiles'].iteritems()] + full_data= [details for profile,details in info['payload']['profiles'].items()] if len(full_data)==1: full_data=full_data[0] return full_data