How fbsamples/messenger-platform-samples works
Project type and purpose
• This is an open-source “Knowledge Bank” of sample Messenger Platform applications. Each top-level folder (e.g. quick-start, handover_protocol, inter-page, messenger-api, node, webview) is a self-contained sample illustrating Messenger webhook handling, API calls, handover protocols, inter-bot thread control, or webview integration.
File structure
• Top-level sample directories correspond to independent micro-services/bots:
• quick-start – a minimal Node.js Express bot
• node – a more advanced Node.js sample with views, static assets
• handover_protocol – two‐app handover‐protocol demo with utilities (utils/api.js, utils/handover-protocol.js, utils/quick-reply.js)
• inter-page – two bots (marketing & support) showing thread control, each in its own dir
• messenger-api – language‐specific “Knowledge Bank” demos (Python Flask, Node.js JS/TS, Java)
• webview – Express server serving a Webview HTML page
• Shared configuration & scripts: package.json in each, .env or config/default.json for credentials, README.md in each illustrating setup.
• CI/CD: GitHub Actions workflow (.github/workflows/postman-sync.yaml), Postman collections in /postman.
README for additional insights
• It describes this repo as “sample applications to learn building on the Messenger Platform.”
• The “Knowledge Bank: Messenger API” section lists the messenger-api subdirectories as code snippets for Python, Node.js, and Java integrations.
• No central database—these are stateless webhook services invoking Messenger Graph API.