GithubHelp home page GithubHelp logo

fbmessengerbot-test's Introduction

fbmessengerbot-test

これはなに?

Facebook Messenger Bot をひとまず PHP on Heroku で動かしてみるキットです. silex を使っています.

始め方

  • Facebook App と Facebook Page を作成してください.
  • Heroku アカウントを取得してください.
  • 下の Deploy ボタンを押してデプロイします. 環境変数に適当な文字列を入れておきます(後で編集したり使ったりします).

Deploy

  • https://developers.facebook.com/docs/messenger-platform/quickstart を参考に、以下の手順を進めてください.
    • Facebook App に Messenger を利用する設定を追加し、Facebook Page の Access Token を取得 -> Heroku にデプロイしたアプリケーションの環境変数 FACEBOOK_PAGE_ACCESS_TOKEN に設定します.
    • Webhooks URL として、 <Heroku にデプロイしたURL>/callback を指定し、Verify Token にはデプロイ時に指定した FACEBOOK_PAGE_VERIFY_TOKEN を指定します. events として messages にチェックを入れ、Verify します.
    • Facebook 側の所定の URL に対して POST リクエストを送信し、Facebook Page に App を登録(Subscribe)します.
  • Facebook メッセンジャーから Facebook Page に話しかけてみましょう.
  • web/index.php を編集して Hack してみましょう. Enjoy!

fbmessengerbot-test's People

Contributors

tmtysk avatar

Watchers

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