Schmavery / facebook-chat-api

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

Chat functions doesn't work on Facebook new UI #840

Open VanHop94 opened 4 years ago

VanHop94 commented 4 years ago

one month ago, I can set userAgent to force facebook back to old UI. But now, Facebook restricts this, please update this function. Thank you so much

gamelaster commented 3 years ago

@Schmavery I guess it's time to archive this repository. Facebook using new technology, based on websockets (it's mqtt with encryption), and from what I've seen, it will took kinda a lot of time until someone will "crack" this communication.

adiantek commented 3 years ago

It still works with userAgent "Mozilla/5.0 (Linux; Android 6.0.1; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Mobile Safari/537.36" in login with appstate (but this userAgent doesn't work with login with email/password). Websocket is implemented in listenMqtt for receiving an events, but some functions should be migrated to mqtt (like sending messages).