Giter Club home page Giter Club logo

facebookmessengerbot's Introduction

FacebookMessengerBot

Facebook Messenger Bot built using Django and NLTK-Chatbot

Please update below lines in fbbot/settings.py where ACCESS_TOKEN and VALIDATION_TOKEN are from facebook and API_KEY is for kgsearch.googleapis.com

ACCESS_TOKEN = "< Access token >"
VALIDATION_TOKEN = "< VALIDATION_TOKEN >"
API_KEY = "< API key >"

for more details checkout Facebook Integration.ipynb

facebookmessengerbot's People

Contributors

ahmadfaizalbh avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

facebookmessengerbot's Issues

internal server error /webhook

Any solutions newbie here . followed the documentation ended up here.

  1. downloaded module
  2. open as pycharm project
  3. done webhook setup
  4. settings.py added accesstoken verify token
  5. developers facebook page added callback url ngrok lin/webhook . with same verify token
    when ever i send message to the bot on facebook getting this error in my terminal.

resolutions will be appreciated .
when get request on http://0bfd5c1a35fb.ngrok.io/webhook
i get multi value dict key error
error log:
[12/Jan/2021 19:52:03] "POST /webhook HTTP/1.1" 500 82026
Internal Server Error: /webhook
Traceback (most recent call last):
File "/home/najeeb/.local/lib/python3.5/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/home/najeeb/.local/lib/python3.5/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/najeeb/.local/lib/python3.5/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/najeeb/.local/lib/python3.5/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/home/najeeb/facebookbot/FacebookMessengerBot-master/bot/views.py", line 114, in web_hook
return chat_handler(request)
File "/home/najeeb/facebookbot/FacebookMessengerBot-master/bot/views.py", line 95, in chat_handler
data = json.loads(request.body)
File "/usr/lib/python3.5/json/init.py", line 312, in loads
s.class.name))
TypeError: the JSON object must be str, not 'bytes'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.