-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
searchForUsers('<name>') not working as Expected #365
Comments
Maybe you have only one Jane on your Facebook friends list? |
Oh, no, I checked with multiple search terms. users = client.searchForUsers('A') |
Found the issue, the limit is set as 1 here. I suppose that was done for a reason? |
I looked at the history, but I couldn't find an explicit reason for setting the limit so low, maybe it was just to be pragmatic, and encourage people to set their own limits? |
It does compromise on usability in its present implementation though, maybe a limit of 3 or 5 would be a better balance between usability and a pragmatic approach? |
Well, you've set it at 10 in #366, which is definitively a better choice for I'd still think that the overly pragmatic choice is better. I'd rather add explicit documentation about this fact, than set an arbitary limit. You can see an example of this in the But then again, I guess I'll approve this change, and merge the PR when it's updated 👍 |
Description of the problem
searchForUsers()
should return a list of objects that match the name entered as the query, but it's returning only one response (presumably, the first response.)Code to reproduce
This should print the user ID of all chats with 'Jane' in their name, but it would return just one option.
Environment information
fbchat
1.4.1The text was updated successfully, but these errors were encountered: