-
Notifications
You must be signed in to change notification settings - Fork 411
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
Fix AttributeError on login #586
Conversation
Hello, I think the update of facebook with new UI did broke a lot of things. The thing is activating/desactivating the UI change (or at least changed) the behaviour of facebook against fbchat. For instance on friday (can't reproduce today), I could login with fbchat only when I desactivated new UI. So one fix can work for people with old UI and not people with new UI. Lets first focus on branch carpedm20:v1 :
On master version, it's a bit worse. I used your change on master version and get
I'm still trying to investigate on this and come back at you if I find something interesting. |
@Callen93 Things I can tell you about my setup and why it fixed the problems I had:
I went through the real |
Hmm, we're using Regarding the new UI, that is partly the reason why I changed the login logic on the |
Theory: Using |
This is a hard question because I don't have time to test it elsewhere and it's hard to be sure unless many others try it and report back as positive. In my case it was a causal effect: adding that line made fbchat login, while removing it had a devastating effect (empty response body so all the regexes fired on an empty string) The only way I can be pretty sure it works is that @Callen93 tried it and reported back as positive, and this is the closest I can be to being sure it at least fixes the login procedure. |
Well, I think that's good enough for me, I'll take it, thanks! |
Facebook decided they needed an "Accept" header to return data on request and that broke fbchat