FacebookHelper.ActivityToFacebook(Activity) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts a Bot Framework activity to a Facebook messenger outbound message ready for the API.
public static Microsoft.Bot.Builder.Adapters.Facebook.FacebookMessage ActivityToFacebook (Microsoft.Bot.Schema.Activity activity);
static member ActivityToFacebook : Microsoft.Bot.Schema.Activity -> Microsoft.Bot.Builder.Adapters.Facebook.FacebookMessage
Public Shared Function ActivityToFacebook (activity As Activity) As FacebookMessage
Parameters
- activity
- Activity
The activity to be converted to Facebook message.
Returns
The resulting message.
Exceptions
activity
is null.