README.md in messenger-bot-1.0.0 vs README.md in messenger-bot-1.0.2

- old
+ new

@@ -25,13 +25,13 @@ ``` 2. Set config in `config/initializers/messenger_bot.rb ` ```ruby Messenger::Bot.config do |config| - config.access_token = <ACCESS_TOKEN> + config.access_token = <PAGE_ACCESS_TOKEN> config.validation_token = <VERIFY_TOKEN> - config.secret_token = <SECRET_TOKEN> + config.secret_token = <FB_APP_SECRET_TOKEN> end ``` [Subscribe the App to the Page](https://developers.facebook.com/docs/messenger-platform/quickstart#subscribe_app_page) 3. Add the following to your `config/routes.rb` @@ -40,10 +40,10 @@ ``` 4. create a controller in `app/controllers/messenger_bot_controller.rb` ```ruby class MessengerBotController < ActionController::Base def message(event, sender) - # profile = sender.get_profile + # profile = sender.get_profile(field) # default field [:locale, :timezone, :gender, :first_name, :last_name, :profile_pic] sender.reply({ text: "Reply: #{event['message']['text']}" }) end def delivery(event, sender) end