Skip to content

Charyf/facebook-charyf

Repository files navigation

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.

About

Facebook interface for Charyf framework

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published