Open M0nochrome opened 4 years ago
Hmm, not really sure I can help you get unblocked, but I seem to remember that when I've gotten blocked, it usually takes ~24 or more hours before I'm unblocked, and in that time, I'm not allowed to do anything (or the timer resets). So taking a day, or maybe three, might be a solution, but don't count on it š.
Another thing: If you do find out how to get unblocked, and you want it to stay that way, you should batch your requests to fetchUserInfo
, by providing multiple ids at once:
user_ids = ['11111', '22222', '33333', '44444']
users = client.fetchUserInfo(*user_ids)
And a third thing: Perhaps I misread, but it sounds like you just want to fetch the group's participants? That can be done quite easily with Group.participants
:
group = c.fetch_group_info(group_id)[group_id]
users = client.fetchUserInfo(*group.participants)
Hm, I'll wait a bit more. It's been more than 40 hours since the error. Still though, I don't get how I am "blocked" but can do anything else BUT fetchUserInfo. Does fb block you from specific requests that you "abused"? Once I get unblocked should I delay my requests by say 1 sec or is there a limit per day or it doesn't matter and it's just luck whether facebook will notice you?
If you do find out how to get unblocked, and you want it to stay that way, you should batch your requests
You're right, I should do that. I hadn't given it much thought and had fetchUserInfo in a loop for no reason at all.
Can't answer your questions, sorry, I simply don't know š. Good luck!
I don't think this is an issue with fbchat but I can't really ask it anywhere else, so here goes: I've made a simple program that basically looked at all the messages of a group chat one by one and fetched information about its user, it was working great while I was testing it, but once I let it run for the whole conversation which took about an hour it returned with the following error at the point where I call "fetchUserInfo":
It's been a day since and I still can't use fetchUserInfo. Weirdly enough though, I can use normally other fetch requests (such as fetchThreadMessages) and even send messages, also I'm not banned from facebook/messenger, I can still use them fine, so I don't know what's going on. Any help would be appreciated?