matrix-hacks / matrix-puppet-facebook

a puppetted facebook bridge
98 stars 21 forks source link

Cannot generate appstate.json #54

Open gvannoye opened 5 years ago

gvannoye commented 5 years ago

While trying to generate appstate.json with node login.js, I have the following error: ERR! login login-approval If you were sent a code, enter it here. If you were asked to approve your login via another device, approve it, choose "save browser", and just hit enter here>

However, when I connect to facebook.com to get a code or approve the device, it is written that my account is temporarily blocked and when I confirm that it was I who tried to connect, my account is unblocked but I do not receive any code. I tried running this service on a server that I rent, which is in a different town that the one I live in, but in the same country (France).

While searching to debug this, I have found this issue on the facebook-api-chat github that looks a bit like the problem I have. The problem is that the solution to this issue is to use a different library, libfb-js… A solution to my problem could be to implement this library into matrix-puppet-facebook, but I don't know how easy it would be to do that.

jeena commented 4 years ago

I have the exact same problem.