Giter Club home page Giter Club logo

springbot's Introduction

SpringBot

Messenger Bot that, based on typed text, query spring documentation and return 3 first results. Read this blog post for more details: https://aboullaite.me/my-first-java-bot/

Run the App

First thing you need to do is to setup a Facebook app, Please follow this link for more details. You'll need also a free hosting service like Heroko or Clever Cloud, or you can simply use NGROK. and don't forget to create a Facebook page.

Once all done, follow this steps:

  • open https://developers.facebook.com/apps click the 'Add a New App' button
  • enter the Display Name, e.g. spring-bot select the Category: 'Apps for Messenger'
  • click the 'Create App ID' button
  • Section 'Token Generation': Select your created FB Page
  • copy the 'Page Access Token' to the clipboard
  • copy it to your application.yml
  • navigate to 'Dashboard'
  • copy the 'App Secret' to the clipboard
  • copy it to your application.yml
  • use a randomly generated string as 'Verify Token'
  • deploy you app, and copy your public HTTPS URL (callback url)
  • navigate back to 'Messenger'
  • Section 'Webhooks': Click the 'Setup Webhooks' button
  • past the Callback URL and your verify token
  • select the following Subscription Fields: messages, messaging_postbacks, messaging_optins, message_deliveries, message_reads, message_echoes
  • click the 'Verify and Save' button
  • Section 'Webhooks': Select your created FB Page to subscribe your webhook to the page events
  • click the 'Subscribe' button

springbot's People

Watchers

 avatar  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.