#5 Fixing code every night - Why oneday my Facebook chatbot doesn't work, but it used to work before

Published: 01 January 1970
on channel: HaryPhamDev
146
1

In this video, I'm going to fix my 'tech shop' Messenger Bot. It used to work, but today, one of my friends tells me that the bot doesn't work anymore. After checking the logs of this chatbot, I figured out the problem: somehow Facebook updated their session, so I need to update the Facebook Page Access Token on the Developer page (the page manages the Facebook App).
I created a new Page Access Token, then updated the configuration on Heroku, and the problem is solved.

This video is made to answer the following message on my Facebook Fanpage (HaryPhamDev): I was trying to use the "Tech Shop Haryphamdev" chatbot but it doesn't work.

Thanks to: مهاب نورالدين البزنطي for letting me know the problem with my Tech Shop Bot :   / techshopharyphamdev  

The Facebook bot Logs:
message: Error validating access token: The session has been invalidated because the user changed their password or Facebook has changed the session for security reasons

This is a video for beginner to build (from scratch) and run a super chatbot to Boost E-commerce Business with Facebook Messenger and Node.JS Platform (an online store chatbot)
The videos for building this bot from scratch:
Part 1:    • Build a Super Chatbot to Boost E-comm...  
Part 2:    • Build a Super Chatbot to Boost E-comm...  
Part 3:    • Build a Super Chatbot to Boost E-comm...  
How to use this bot:    • Super Chatbot to Boost E-commerce Bus...  

How to use this bot:    • Super Chatbot to Boost E-commerce Bus...  
Feel free to test my bots now👉:
An Online store (this bot):
A Restaurant bot: https://m.me/restaurantHaryPhamDev

The Facebook Page I embed that bot:   / techshopharyphamdev  

What can this bot do:
Showing categories
Looking up order (with a custom web view from node.js server)
Talking with "real" live agent (if the user request)
Turn on/off the bot
Restart the conversation.

Backend: Express framework.
Frontend: EJS view engine, HTML, CSS

🧠 Concepts Covered:
Step 1: Set up a Node.js server with Express Framework.
Step 2: Deploy a Node.js app to Heroku
Step 3: Config Facebook webhook
Step 4: Send basic messages: text message and attachment message
Step 5: Add the "Get started" button and the persistent menu.
Step 6: Get the Facebook username

📚 Materials/References:
Guide to deploy a Node.js app to Heroku in 3 mins:    • How to deploy a NodeJS app to Heroku ...  
Config Heroku install devDependencies: heroku config:set NPM_CONFIG_PRODUCTION=false
Top 3 errors deploy Node.js app to Heroku:    • Heroku deploy failure - Top 3 error n...  
To create your own Privacy Policy URL (free), go to : https://app.freeprivacypolicy.com/bui...
The fake Privacy Policy URL I use the video: https://www.freeprivacypolicy.com/pri...

Build a bot to push notification to Telegram:    • Telegram Bot | Build a simple Chatbot...  

Facebook Webhook setup:   / webhook-setup  
Facebook App setup :   / app-setup  
Send a basic message (text and attachment file) :   / quick-start  
Facebook get Started button:   / get-started-button  
Facebook persistent menu:   / persistent-menu  
Get Facebook username with User profile API :   / user-profile  

Fix the Facebook Chatbot errors, only work with the Admin account (the account that creates the Facebook Page for chatbot), not others:    • Fix the error the ChatBot not working...  

Build an awesome chatbot with Node.js platform:    • Buid an awesome Bot (chatbot) with No...  


🌎 Find Me Here:

Facebook Fanpage:   / haryphamdev  
Patreon:   / haryphamdev  
Twitter:   / haryphamdev  
GitHub: https://github.com/haryphamdev

PLEASE CLICK THE 🔔BELL TO GET UPDATES AND DON'T FORGET TO ► SUBSCRIBE! ► https://bit.ly/subscribe-haryphamdev

#facebookMessengerBot #messengerChatBot #chatBotFromScratch


Watch video #5 Fixing code every night - Why oneday my Facebook chatbot doesn't work, but it used to work before online without registration, duration hours minute second in high quality. This video was added by user HaryPhamDev 01 January 1970, don't forget to share it with your friends and acquaintances, it has been viewed on our site 146 once and liked it 1 people.