Sha256: e50b0c231710de1612e5c249e8507d962b5241e68a85a4646ed2d4630b94059f
Contents?: true
Size: 1.36 KB
Versions: 2
Compression:
Stored size: 1.36 KB
Contents
#facebook-bot [![Build Status](https://travis-ci.org/jun85664396/facebook-bot.svg?branch=master)](https://travis-ci.org/jun85664396/facebook-bot) [![Gem Version](https://badge.fury.io/rb/facebook-bot.svg)](https://badge.fury.io/rb/facebook-bot) Ruby on Rails client!! for [Facebook Messenger Platform](https://developers.facebook.com/docs/messenger-platform) Requires Rails >= 4.2.0 ##Installation Bundler in your Gemfile. gem 'messenger-bot' ##Quickstart #config/initializers/facebook_bot.rb Messenger::Bot.config do |config| config.access_token = <ACCESS_TOKEN> config.validation_token = <VERIFY_TOKEN> end #config/routes.rb mount Messenger::Bot::Space => "/webhook" ##Example [Example](https://github.com/jun85664396/facebook-bot/blob/master/example/facebook_bot.rb) # app/controllers/application_controller.rb Messenger::Bot.on("message") do |event, sender| sender.reply({ text: "Reply: #{event['message']['text']}" }) end Messenger::Bot.on("delivery") do |event, sender| #BlahBlah end Messenger::Bot.on("postback") do |event, sender| #BlahBlah end ![Ex](https://camo.githubusercontent.com/2452b2ca2f748f2695e545c5c14e70356df5d673/68747470733a2f2f692e696d6775722e636f6d2f59544d4f5967362e676966) ## license MIT, see [LICENSE.txt](LICENSE.txt)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
messenger-bot-0.1.5 | README.md |
messenger-bot-0.1.4 | README.md |