Schmavery / facebook-chat-api

Unofficial Facebook Chat API for Nodejs
MIT License
1.94k stars 597 forks source link

Does not login at all #812

Open DavidGOrtega opened 4 years ago

DavidGOrtega commented 4 years ago
login({email: '*********, password: '********'}, (err, api) => {
    if(err) return console.error(err);

    api.listen((err, message) => {
      api.sendMessage(message.body, message.threadID);
    });
});
info login Logging in...
info login Logged in
info login Request to reconnect
info login Done logging in.
ERR! listen Error: parseAndCheckLogin got status code: 404. Bailing out of trying to parse response.
ERR! listen     at /node_modules/facebook-chat-api/utils.js:1042:15
ERR! listen     at tryCatcher (/node_modules/bluebird/js/release/util.js:16:23)
j4pa0 commented 4 years ago

Please use api.listenMqtt

login({email: '*********, password: '********'}, (err, api) => {
    if(err) return console.error(err);

    api.listen((err, message) => {
      api.sendMessage(message.body, message.threadID);
    });
});
info login Logging in...
info login Logged in
info login Request to reconnect
info login Done logging in.
ERR! listen Error: parseAndCheckLogin got status code: 404. Bailing out of trying to parse response.
ERR! listen     at /node_modules/facebook-chat-api/utils.js:1042:15
ERR! listen     at tryCatcher (/node_modules/bluebird/js/release/util.js:16:23)