Mizuki

Searches a certain string from resent Facebook messages.
Note that token needs extended permission "read_mailbox".

Installation

Add this line to your application's Gemfile:

gem 'mizuki'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mizuki

Usage

Mizuki.message_sent?(STRING_TO_SEARCH,TOKEN_WITH_READ_MAILBOX)  

Returns true when STRING_TO_SEARCH is included to recent 5 message threads, returns false if not.
Note that it throws FbGraph::SOME_KIND error when Graph API error occures.

Who is Mizuki?

New Romantic!