๐ Setup Status
Page Access Token configured
Verify Token configured
Directory is writable
File messenger_bot.php exists
File messenger_client.php exists
File webhook_handler.php exists
File config.php exists
๐ง Configuration
Update your config.php
file with the following:
// Facebook Messenger Bot Configuration
define('PAGE_ACCESS_TOKEN', 'YOUR_ACTUAL_PAGE_ACCESS_TOKEN');
define('VERIFY_TOKEN', 'YOUR_CHOSEN_VERIFY_TOKEN');
define('WEBHOOK_URL', 'https://viralmetrics.site//webhook.php');
๐ Webhook Setup
Use this URL in your Facebook App webhook configuration:
https://viralmetrics.site//webhook.php
Test webhook verification:
Test Webhook Verification
๐งช Testing
Available test endpoints:
Test Webhook Handler
Web Ticket Viewer
Manual Test Commands
Once your bot is set up, users can send these commands:
- start - Welcome message and help
- help - Show available commands
- view [ticket_id] - View ticket details (or just "view" for last ticket)
- [category] [order_id] - Create ticket (e.g., "refill 12345")
๐ Available Commands
Ticket Categories:
โข speed up [order_id]
โข refill [order_id]
โข cancel [order_id]
โข restart [order_id]
โข fake complete [order_id]
View Commands:
โข view [ticket_id]
โข viewticket [ticket_id]
Help Commands:
โข start
โข help
๐ System Information
PHP Version: 7.4.33
cURL: Available
JSON: Available
Temp Directory: Writable
๐ Next Steps
- Update
config.php
with your actual Facebook tokens
- Set up webhook URL in Facebook App settings
- Subscribe to
messages
and messaging_postbacks
webhook events
- Test the webhook verification
- Send a test message to your Facebook Page