No commit activity in last 3 years
No release in over 3 years
Facebook interface for Charyf chatbot framework
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.15
~> 10.0
~> 3.0

Runtime

 Project Readme

Facebook Interface - Charyf

This gem provides an interface adapter for Facebook Messenger to Charyf framework.

Installation

Add this line to your application's Gemfile:

gem 'facebook-interface-charyf'

And then execute:

$ bundle

Then add the facebook interface to the applocation loads by adding line to config/loads.rb

require 'facebook/interface'

To generate the intializer run

charyf generate facebook:interface:install

You should be welcomed by the message

      create  config/initializers/facebook.rb
      notice  Facebook interface installed
		Do not forget to enable facebook interface in application configuration
			config.enabled_interfaces = [.., :facebook, ..]

You can configure the interface inside config/initializers/facebook.rb which was generated by the installer

Now enable facebook interface inside your application config (config/application.rb) or specific environment config (e.g.: config/environments/development.rb)

config.enabled_interfaces = [.., :facebook, ..]

Usage

Read more about creating a facebook page and hooking a bot to messenger on the Facebook messenger gem page

https://github.com/jgorset/facebook-messenger

Configure the interface after you set up your own secret tokens.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Facebook::Charyf project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.