Schmavery / facebook-chat-api

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

Can you use puppeteer instead of selenium as web driver to avoid checkpoint? #813

Open VanHop94 opened 4 years ago

VanHop94 commented 4 years ago

Hi

Thank for you libs, it's awesome for me. But 1 issue, I usually get a checkpoint. I read the document and see that we use selenium to simulate user behavior. But Facebook can easy to check bot if we using selenium, puppeteer help us resolve it with https://github.com/berstend/puppeteer-extra/tree/master/packages/puppeteer-extra-plugin-stealth

BadAimWeeb commented 4 years ago

actually, we don't. we use request to request to Facebook.

VanHop94 commented 4 years ago

I think the use request is the reason the Facebook account usually checkpoint. I try to use the same account, the same behavior (send message to not friend user), on the browser and your code. When use browser it works well, but via code, it gets checkpoint :(

BadAimWeeb commented 4 years ago

try changing user agent.

VanHop94 commented 4 years ago

yes, I tried to set user agent the same on my laptop, but it doesn't help

HossamMohsen7 commented 4 years ago

Try these things:

VanHop94 commented 4 years ago

I've set user Agent, but sometimes I received an email saying that I log in from an unknown device