Messenger.Client.V2 0.8.0

.NET Client for Facebook Messenger Platform. GitHub Repository: https://github.com/barakalabs/messenger-client

Install-Package Messenger.Client.V2 -Version 0.8.0
dotnet add package Messenger.Client.V2 --version 0.8.0
<PackageReference Include="Messenger.Client.V2" Version="0.8.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Messenger.Client.V2 --version 0.8.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Facebook Messenger .NET Client

A .NET Core client for Facebook Messenger platform.

Installation

Install-Package Messenger.Client

To use ASP.NET Core extensions use Messenger.Client.Extensions package.

Install-Package Messenger.Client.Extensions

Documentation

Configuration

To register the client add the following line in your Startup.cs file

public class Startup {
	public void ConfigureServices(IServiceCollection services)
    {
    	...
        services.AddMessengerClient("%ACCESS_TOKEN%");
    }
}
IMessengerMessageSender

IMessengerMessageSender allows you to send a message to specific Messenger user.

[Route("api/webhook")]
public class FacebookController() {
	private readonly IMessengerMessageSender messageSender;
  
    public FacebookController(IMessengerMessageSender messageSender) {
      this.messageSender = messageSender;
    }

    ...

    private Task SendMessage(String text, MessengerUser recipient)
    {
      var reply = new MessengerMessage {Text = text};
      return messageSender.SendAsync(reply, recipient);
    }
    ...
}

Facebook Messenger .NET Client

A .NET Core client for Facebook Messenger platform.

Installation

Install-Package Messenger.Client

To use ASP.NET Core extensions use Messenger.Client.Extensions package.

Install-Package Messenger.Client.Extensions

Documentation

Configuration

To register the client add the following line in your Startup.cs file

public class Startup {
	public void ConfigureServices(IServiceCollection services)
    {
    	...
        services.AddMessengerClient("%ACCESS_TOKEN%");
    }
}
IMessengerMessageSender

IMessengerMessageSender allows you to send a message to specific Messenger user.

[Route("api/webhook")]
public class FacebookController() {
	private readonly IMessengerMessageSender messageSender;
  
    public FacebookController(IMessengerMessageSender messageSender) {
      this.messageSender = messageSender;
    }

    ...

    private Task SendMessage(String text, MessengerUser recipient)
    {
      var reply = new MessengerMessage {Text = text};
      return messageSender.SendAsync(reply, recipient);
    }
    ...
}

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.8.0 65 6/25/2019