- Support for game_plays
- Support for pass_thread_control
- Upgraded to Graph API 3.2 for everything
- Support for appsecret_proof
- Support for Graph API 3.2 in
Subscriptions
.
- Fixed a bug that caused messaging types and tags to not be required.
- Support for Rack 1.4.5 or newer (was 1.6.4).
Incoming::Optin#user_ref
.- Support for message requests.
- Support for Facebook's built-in NLP with
Incoming::Message#nlp
. - Support for payments with
Incoming::Payment
. - Support for handover.
- Support for message types and tags.
- Support for prior message.
- Support for Graph API v2.9.
- Error codes now include subcodes
- You may now subscribe to message echoes without DDOSing yourself.
Message#app_id
yields the application ID for message echoes.- Helpers to determine the attachments of a message (e.g.
Message#image_attachment?
).
Thread
is nowProfile
to correspond with Facebook's API.
- Various errors from the Facebook Messenger platform are now subclasses of
Facebook::Messenger::Errors
to allow easier error handling. Message#mark_seen
will mark the received message as seen.
type
is nowtyping_on
andtyping_off
.
Message#referral
now returnsnil
if there is no referral.
- Webhooks that don't have messaging will now be ignored rather than crash.
- Refactored use of
dig
for compatibility with Ruby < 2.3.
reply
andtype
are now available on any incoming entry (such as messages or postbacks).- With the introduction of configuration providers, bots may now be installed to multiple Facebook Pages.
Incoming::Message
now has anecho?
method which returns a boolean describing whether the message was an echo.
Bot.deliver
now requires a keyword argumentaccess_token
.Facebook::Messenger.configuration.verify_token
,app_secret
andaccess_token
are replaced by configuration providers.
- Fixed a bug that caused
Message.quick_replies
to crash when a quick reply wasn't used.
Message.quick_replies
is nowMessage.quick_reply
.
- Quick replies.
- Account linking.
- Fixed a bug that caused
read
to be ignored.
Incoming::Message
now has arecipient
method for consistency.- Thread settings for welcome messages and persistent menu.
- Welcome messages (these are now thread settings).
- Welcome messages.
- Support for read messages (although it isn't documented yet, Facebook is known to send these).
- Fix an issue that would crash the bot when Facebook neglects to send the
X-Hub-Signature
header. This will now fail with a warning and prompt Facebook to retry.
- You may now verify that the message is from Facebook by
configuring
app_secret
. - Support for Rack 2.
- Support for receiving attachments from the user.
- Fix a bug that caused
Subscriptions.subscribe
andSubscriptions.unsubscribe
to not raise errors.
- Fix a bug that caused
Bot.deliver
to return'message_id'
for successful deliveries andnil
for unsuccessful deliveries instead of a message ID or appropriate exceptions.
- Support for threaded servers.
- Fix a bug that caused a
NoMethodError
with no hooks at all.
- Add support for optins.
- Fix a bug that prevented registering postbacks.
- Everything!
- Nothing; release an empty codebase to snag the name.