We are trying to get the persistent menu working on the Facebook channel with the bot framework.
See docs here…
The JSON we send matches the example in the second link above, and is very basic:
"persistent_menu": [
{
"locale": "default",
"composer_input_disabled": true,
"call_to_actions": [
{
"type": "postback",
"title": "Help"
},
{
"type": "postback",
"title": "Home"
}
]
}
]
When we send this to the Facebook channel, simply nothing happens.
Any ideas? Thanks in advance.
For Persistent menus with callback buttons, it is reccomended to use suggested actions instead. below is an example:
var reply = activity.CreateReply("I have colors in mind, but need your help to choose the best one.");
reply.Type = ActivityTypes.Message;
reply.TextFormat = TextFormatTypes.Plain;
reply.SuggestedActions = new SuggestedActions()
{
Actions = new List<CardAction>()
{
new CardAction(){ Title = "Blue", Type=ActionTypes.ImBack, Value="Blue" },
new CardAction(){ Title = "Red", Type=ActionTypes.ImBack, Value="Red" },
new CardAction(){ Title = "Green", Type=ActionTypes.ImBack, Value="Green" }
}
};