I want to use Facebook authentication to my bot. So far, I am following this sample .
I want to trigger the Facebook dialog when some Luis intent is in scope.
For example, I want to something similar to what I have in my MessagesController
:
await Conversation.SendAsync(activity, () => new RootLuisDialog());
but in my Luis dialog:
public async Task help(IDialogContext context, LuisResult result)
{
await Conversation.SendAsync(activity, () => SimpleFacebookAuthDialog.dialog);
}
How to send proper activity to Facebook dialog?
You need to use context.Call
or context.Forward
in order to call a child dialog.
context.Call(SimpleFacebookAuthDialog.dialog, this.ResumeAfterAuth);
You might need to check the MultiDialogs sample to grasp some of the concepts involved.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.