Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

fbbot is a sim1ple bot class to showcasing the Facebook Messenger Platform

Project description

fbbot is a sim1ple bot class to showcasing the Messenger Platform, make your facebook bot with django-fbbot

Install

  1. Install fbbot package with python-pip:

    pip install fbbot
    
  2. Create a simple echo bot ‘my_fbbot.py’:

    from fbbot.test import simpleEchoBot
    
    FB_VERIFY_TOKEN = "VERIFY_TOKEN_DEFINED_BY_DEVELOPER"
    FB_PAGE_TOKEN = "FACEBOOK_PAGE_TOKEN"
    
    simpleEchoBot.run(FB_VERIFY_TOKEN, FB_PAGE_TOKEN, port="8000")
    
  1. Run python3 my_fbbot.py.

  2. Start the development server and visit http://127.0.0.1:8000/webhook

  3. Visit http://127.0.0.1:8000/webhook and see “Hello World, webhook enable”

  4. Send a message to your facebook page and the fbbot send the same text:

            Hello! :User
    Bot: Hello!
             Echo! :User
    Bot: Echo!
    

Uninstall

  1. If you want to uninstall this package run:

    pip uninstall fbbot
    

Project details


Release history Release notifications

This version
History Node

1.0.10

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
fbbot-1.0.10-py2-none-any.whl (13.0 kB) Copy SHA256 hash SHA256 Wheel py2 Sep 11, 2017
fbbot-1.0.10-py3-none-any.whl (13.0 kB) Copy SHA256 hash SHA256 Wheel py3 Sep 11, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page