帐户链接 Microsoft bot 框架 Facebook 教程
Account Linking Microsoft bot framework Facebook Tutorial
我最近开始通过 Microsoft Bot Framework 为 Facebook 开发一个机器人,我需要的一个关键功能是一个良好的帐户链接系统。当我做研究时,我只能找到 Facebook Messenger 平台的教程 https://developers.facebook.com/docs/messenger-platform/account-linking
我想知道是否有人知道 Microsoft Bot Framework 的类似教程,或者我在哪里可以找到关于这个主题的更多信息,或者是否有人有建议。
提前致谢
爨
即使您使用的是 BotFramework,您仍然会想要使用 Facebook 的帐户 linking(如上文 link 所述)。要启动登录,您需要创建一条自定义消息:
msg = new builder.Message(session);
msg.sourceEvent({
facebook: {
attachment:{
type:"template",
payload:{
template_type:"generic",
elements:[{
title:"title",
subtitle:"subtitle",
image_url:"https://en.wikipedia.org/wiki/Space_Needle.jpg",
buttons:[{
type:"account_link",
url: "https://www.someurl.com/authorize"
}]
}]
}
}
}
});
我最近开始通过 Microsoft Bot Framework 为 Facebook 开发一个机器人,我需要的一个关键功能是一个良好的帐户链接系统。当我做研究时,我只能找到 Facebook Messenger 平台的教程 https://developers.facebook.com/docs/messenger-platform/account-linking 我想知道是否有人知道 Microsoft Bot Framework 的类似教程,或者我在哪里可以找到关于这个主题的更多信息,或者是否有人有建议。
提前致谢
爨
即使您使用的是 BotFramework,您仍然会想要使用 Facebook 的帐户 linking(如上文 link 所述)。要启动登录,您需要创建一条自定义消息:
msg = new builder.Message(session);
msg.sourceEvent({
facebook: {
attachment:{
type:"template",
payload:{
template_type:"generic",
elements:[{
title:"title",
subtitle:"subtitle",
image_url:"https://en.wikipedia.org/wiki/Space_Needle.jpg",
buttons:[{
type:"account_link",
url: "https://www.someurl.com/authorize"
}]
}]
}
}
}
});