Christoforus Surjoputro - Academic surabaya.py
Github : 3mp3ri0r
www.facebook.com/totoganteng
surabaya.py
Github : surabaya-py
http://surabaya.python.or.id/register
https://t.me/surabayadotpy
how bot messenger work
overview
your apps
GET
POST
facebook graph api
POST
???
webhook
= webhook
provider
webhook is a way for an app to provide other application with real-time information.
https://sendgrid.com/blog/whats-webhook/
verify your apps
your apps
GET
query string:
hub.mode=subscribe&hub.challenge=686231577&hub.verify_token=verifikasi-python-id-bot'
POST message format
your appsPOST
receiving text message
your appsPOST
receiving message with attachment
your appsPOST
sending text message
your apps
facebook graph api
POST
Link: https://graph.facebook.com/v2.6/me/messages?access_token=your_page_token
sending text message
your apps
facebook graph api
POST
Link: https://graph.facebook.com/v2.6/me/messages?access_token=your_page_token
sending attachment message
your apps
facebook graph api
POST
sending attachment message
Content-Type: multipart/form-data; boundary=---boundary_data
Link: https://graph.facebook.com/v2.6/me/messages?access_token=your_page_token
your apps
facebook graph api
POST
Find more on: https://developers.facebook.com/docs/messenger-platform
“I can accept failure, everyone fails at something.
But I can't accept not trying.”
-- Michael Jordan --
Thank you

How messenger bot work