Build your first Facebook Messenger bot in Ruby with Sinatra and “facebook-messenger” gem (Part 1/3…
Andy Barnov
8111

Hi Andy,

I’m currently doing this tutorial but I keep getting this error when doing rackup -p 5000:

undefined method `include’ for #<Rack::Builder:0x007fe87420b1b0> (NoMethodError)

from /Users/linhnguyenmy/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in `instance_eval’

I have already included the following line:

require “facebook/messenger”
include Facebook::Messenger

and have the gem installed

Show your support

Clapping shows how much you appreciated Linh Nguyen My’s story.