如何将菜单图标添加到 Facebook 永久菜单
How to add menu icons to a Facebook Persistent Menu
如何向 Facebook 永久菜单添加图标?如下图。使用这个 Facebook 示例,我需要在 Git Bash 执行的代码中添加什么?
curl -X POST -H "Content-Type: application/json" -d '{
"persistent_menu":[
{
"locale":"default",
"composer_input_disabled":true,
"call_to_actions":[
{
"title":"My Account",
"type":"nested",
"call_to_actions":[
{
"title":"Pay Bill",
"type":"postback",
"payload":"PAYBILL_PAYLOAD"
}]
}]
},
{
"locale":"zh_CN",
"composer_input_disabled":false
}
]
}' "https://graph.facebook.com/v2.6/me/messenger_profile?
access_token=YOUR_ACCESS_TOKEN_HERE"
示例:
您可以使用 facebook 表情符号 -> 例如:✏ ...
这里有一个link可以帮助复制表情符号:
https://www.piliapp.com/facebook-symbols/chat/
我的意思是这样的:
{
"persistent_menu":[
{
"locale":"default",
"composer_input_disabled":false,
"call_to_actions":[
{
"title": " bla",
"type":"nested",
"call_to_actions":[
{
"title":" bla",
"type":"postback",
"payload":"SeeCourses_PAYLOAD"
},
{
"title":" bla",
"type":"postback",
"payload":"SeeMyCourses_PAYLOAD"
},
{
"title":" bla",
"type":"postback",
"payload":"SearchForCourses_PAYLOAD"
}
]
},
{
"title":" bla",
"type":"postback",
"payload":"SessionsDateAndTimes_PAYLOAD"
},
{
"title":"⚠ bla",
"type":"postback",
"payload":"InsituteInfo_PAYLOAD"
}
]
},
{
"locale":"ar_AR",
"composer_input_disabled":false,
"call_to_actions":[
{
"type":"postback",
"title":"Change Language",
"payload":"Change Language"
}
]
}
]
}
如何向 Facebook 永久菜单添加图标?如下图。使用这个 Facebook 示例,我需要在 Git Bash 执行的代码中添加什么?
curl -X POST -H "Content-Type: application/json" -d '{
"persistent_menu":[
{
"locale":"default",
"composer_input_disabled":true,
"call_to_actions":[
{
"title":"My Account",
"type":"nested",
"call_to_actions":[
{
"title":"Pay Bill",
"type":"postback",
"payload":"PAYBILL_PAYLOAD"
}]
}]
},
{
"locale":"zh_CN",
"composer_input_disabled":false
}
]
}' "https://graph.facebook.com/v2.6/me/messenger_profile?
access_token=YOUR_ACCESS_TOKEN_HERE"
示例:
您可以使用 facebook 表情符号 -> 例如:✏ ... 这里有一个link可以帮助复制表情符号:
https://www.piliapp.com/facebook-symbols/chat/
我的意思是这样的:
{
"persistent_menu":[
{
"locale":"default",
"composer_input_disabled":false,
"call_to_actions":[
{
"title": " bla",
"type":"nested",
"call_to_actions":[
{
"title":" bla",
"type":"postback",
"payload":"SeeCourses_PAYLOAD"
},
{
"title":" bla",
"type":"postback",
"payload":"SeeMyCourses_PAYLOAD"
},
{
"title":" bla",
"type":"postback",
"payload":"SearchForCourses_PAYLOAD"
}
]
},
{
"title":" bla",
"type":"postback",
"payload":"SessionsDateAndTimes_PAYLOAD"
},
{
"title":"⚠ bla",
"type":"postback",
"payload":"InsituteInfo_PAYLOAD"
}
]
},
{
"locale":"ar_AR",
"composer_input_disabled":false,
"call_to_actions":[
{
"type":"postback",
"title":"Change Language",
"payload":"Change Language"
}
]
}
]
}