Giter VIP home page Giter VIP logo

fbmessenger's Introduction

Facebook messenger extension

Integration with Facebook messenger API. You will be able to chat with Facebook page users directly in lhc back office.

  • Supports multiple pages at once.
  • Each page chat can be assigned to custom department.

Example of callback url

https://example.com/fbmessenger/callback/

Installation

  • Make copy of settings.ini.default.php to settings.ini.php and edit file settings.
  • Actvate extension in settings/settings.ini.php extension section "fbmessenger"
  • Install database either by executing doc/install.sql file or executing this command php "cron.php -s site_admin -e fbmessenger -c cron/update_structure"
  • Create facebook page in Modules -> Facebook chat -> Facebook pages -> Register new page
  • Once page is created you will see what callback url you have to put in facebook webhook. URL is presented in list.
  • You have to configure facebook app according to this tutorial https://developers.facebook.com/docs/messenger-platform/guides/quick-start/
  • Your facebook application has to have "pages_messaging" permission for lhc to be able to extract visitor information and be able to send messages back to lhc. For that you will have to submit application and wait for FB to review it.
  • Before facebook validates your application keep settings "verified" false (in facebook page configuration). After facebook has reviewed your application set "verified" to true. So you will be able to send a messages. During testing, if you add some developer, you can set it to true to see how it works.

How it works

Once visitor writes a message in facebook page. You will receive a chat with visitor.

Todo

  • Add support for images, not just plain messages.
  • Add support for automated hosting environment.

fbmessenger's People

Contributors

remdex avatar

Watchers

 avatar

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.