Image for post
Image for post

Building a GIF Messenger Bot with Flask

Valentino Ugbala
Nov 4, 2017 · 5 min read
Image for post
Image for post
creating a Facebook app
Image for post
Image for post
Image for post
Image for post
pip install Flask requests
python bot.py

Introduce ngrok

ngrok http 5000
Image for post
Image for post
Image for post
Image for post
adding a webhook and verify token for the bot
Image for post
Image for post

Make a simple echo bot

Image for post
Image for post
echo bot in action

Introduce GIPHY API

Image for post
Image for post

Conclusion

CodebagNG

Let’s build the tech.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store