Class PersistentMenu

java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.send.PersistentMenu
All Implemented Interfaces:
Serializable

public class PersistentMenu
extends AbstractFacebookType
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • addCallToAction

      public void addCallToAction​(MenuItem item)
    • getLocale

      public String getLocale()
      Locale of the menu. We will show this menu when user locale matches the provided locale. You must at least specify a menu for the default locale. This is the menu we will fall back to if we don't find another matching the user's locale. See the list of supported locales.
    • setComposerInputDisabled

      public void setComposerInputDisabled​(Boolean composerInputDisabled)
      Set to true to disable user input in the menu. This means users will only be able to interact with your bot via the menu, postbacks, buttons, and webviews.
    • getComposerInputDisabled

      Set to true to disable user input in the menu. This means users will only be able to interact with your bot via the menu, postbacks, buttons, and webviews.
    • getCallToActions

      Top-level menu items that user can interact with.