BotMill / fb-botmill

A Java framework for building bots on Facebook's Messenger Platform.
MIT License
72 stars 26 forks source link

Getting Started updates #81

Closed alvin-reyes closed 7 years ago

alvin-reyes commented 7 years ago

Need to change the Getting started and adjust it to the new one (as of 1.4).

https://developers.facebook.com/docs/messenger-platform/messenger-profile/get-started-button

aurasphere commented 7 years ago

I'm looking into this, I'll share my analysis since probably this applies to other Thread Settings changes as well.

Currently our request is: {"thread_state":"new_thread","call_to_actions":[{"payload":"TEST_GET_STARTED_BUTTON","type":"postback"}],"setting_type":"call_to_actions"}

posted to https://graph.facebook.com/v2.7/me/thread_settings?access_token=****

the new format is: { "get_started":{"payload":"GET_STARTED_PAYLOAD"}}

posted to https://graph.facebook.com/v2.7/me/messenger_profile?access_token=****

The old api still works. Apart from the request and the response, nothing has really changed.

alvin-reyes commented 7 years ago

yes the old API still works since they won't retire them soon. We need to deprecate ours but we need a separate package for this as oppose to re-using the old one. This so that we won't clash with the older functions.

We need to create a package specific for this: co.aurasphere.botmill.fb.model.messengerprofile