DiscipleTools / disciple-tools-facebook

Adds integration to Facebook pages and creates contacts from Direct Message conversations. This is a key plugin for outreach through Facebook.
https://disciple.tools/plugins/facebook/
Other
4 stars 1 forks source link

Integration sometimes creates duplicate comments from messages. #24

Closed corsacca closed 3 years ago

jollypirate268 commented 4 years ago

@corsacca take a look: https://gist.github.com/Shaked/9db67cea0ba5b7e9ade039c08c18780b

corsacca commented 3 years ago

@jollypirate268 i think the upgrade described in that link applies to requests made by facebook to any server. Usually in from their webhooks api. So when facebook sends a request, it expects a 200 back. Instead of getting pushed information The D.T Facebook integration is the one doing the request and pulls facebook for the information. I think is issue has something to do with the cron job firing at the same time.

corsacca commented 3 years ago

Possibly fixed with https://github.com/DiscipleTools/disciple-tools-facebook/commit/38420f8d21a0c0a55be0b79f7cc7f241faf7bf26 Can't use Uptime Robot and WP-CRON

jollypirate268 commented 3 years ago

Disabling Uptime Robot seems to be working (across a sample size of... about 7 updates !)

corsacca commented 3 years ago

We have not seen this issue since the fix.