facebook-chat-api icon indicating copy to clipboard operation
facebook-chat-api copied to clipboard

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

Open VanHop94 opened this issue 4 years ago • 6 comments

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

VanHop94 avatar Apr 19 '20 18:04 VanHop94

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

BadAimWeeb avatar Apr 19 '20 23:04 BadAimWeeb

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 :(

VanHop94 avatar Apr 21 '20 03:04 VanHop94

try changing user agent.

BadAimWeeb avatar Apr 21 '20 09:04 BadAimWeeb

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

VanHop94 avatar Apr 21 '20 09:04 VanHop94

Try these things:

  • Enable 2FA
  • Enable autoMarkDelivery and autoMarkRead
  • Don't use a server because Facebook can detect the ip

HossamMohsen7 avatar Apr 21 '20 14:04 HossamMohsen7

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

VanHop94 avatar Apr 21 '20 17:04 VanHop94