Veriqa.Core.ChannelAdapter.Messenger 0.7.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Veriqa.Core.ChannelAdapter.Messenger --version 0.7.0
                    
NuGet\Install-Package Veriqa.Core.ChannelAdapter.Messenger -Version 0.7.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Veriqa.Core.ChannelAdapter.Messenger" Version="0.7.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Veriqa.Core.ChannelAdapter.Messenger" Version="0.7.0" />
                    
Directory.Packages.props
<PackageReference Include="Veriqa.Core.ChannelAdapter.Messenger" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Veriqa.Core.ChannelAdapter.Messenger --version 0.7.0
                    
#r "nuget: Veriqa.Core.ChannelAdapter.Messenger, 0.7.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Veriqa.Core.ChannelAdapter.Messenger@0.7.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Veriqa.Core.ChannelAdapter.Messenger&version=0.7.0
                    
Install as a Cake Addin
#tool nuget:?package=Veriqa.Core.ChannelAdapter.Messenger&version=0.7.0
                    
Install as a Cake Tool

Veriqa.Core.ChannelAdapter.Messenger

Facebook Messenger login and authentication for your website or app. Your users scan a QR code on a computer, TV or kiosk, or tap a button on their phone, and confirm the sign-in in the Messenger chat with your Facebook Page: no password, no SMS code and no sign-up form. Your application receives standard OpenID Connect tokens.

This package is the Messenger channel of Veriqa, an open-source project for passwordless authentication through popular messaging apps and email, over standard OpenID Connect. Setup guide: Messenger channel.

About this package

The adapter turns the user's confirmation in the Messenger chat with a Facebook Page into the identity the core issues tokens for. Messenger is not part of the Veriqa.Core.BaseChannels metapackage: it is installed with an explicit dotnet add package by the deployments that need it. The package carries no platform SDK — the channel talks plain HTTP.

Install

dotnet add package Veriqa.Core.ChannelAdapter.Messenger

The channel contour (Veriqa.Core.ChannelAdapter) arrives with this package — it is not installed separately.

Wiring

authServer.AddChannelAdapters(adapters => adapters.AddMessenger());

The adapter activates only when its configuration section Veriqa:Channels:Messenger is enabled ("Enabled": true); otherwise only its options and their validator are registered.

Configuration

{
  "Veriqa": {
    "Channels": {
      "Messenger": {
        "Enabled": true,
        "InboundVerification": "signature",
        "PageId": "YOUR_PAGE_ID",
        "PageName": "your.page.username",
        "PageAccessToken": "YOUR_PAGE_ACCESS_TOKEN",
        "AppSecret": "YOUR_APP_SECRET",
        "WebhookVerifyToken": "YOUR_VERIFY_TOKEN"
      }
    }
  }
}

GraphApiVersion defaults to v26.0; set it to run against another Graph API version.

DeepLinkByPageId is optional and defaults to false. With true the sign-in link is built from PageId instead of PageName, and PageName is not required — for a Page whose link by the username does not open the thread in the Messenger app.

The webhook is registered on Meta's side: /api/channels/messenger/webhook (or /api/channels/messenger/webhook/{tenant} for a tenant with a Meta app of its own). Every delivery is checked against the X-Hub-Signature-256 signature keyed with AppSecret.

Sign-in start, profile and phone number

The sign-in starts by the link https://m.me/<PageName>?ref=auth_<transaction> — or https://m.me/<PageId>?ref=auth_<transaction> with DeepLinkByPageId switched on; the same marker sent as a message starts it too. Subscribe the Page to the messages, messaging_postbacks and messaging_referrals webhook fields: a link opened into an existing thread arrives as a referral event, a link that opens a new thread arrives inside the postback of the Get Started button.

That first tap may arrive without the ref value. The channel then answers with a hint, and the user goes on by sending the code shown on the sign-in page as a message — the digits alone — or by scanning the QR code again. The sign-in page shows the code after a short delay and hides it once the Page has answered; SpareStartCodeEnabled: false in the channel section switches the code off. Only a tapped button gets the hint: a typed message that is neither a code nor a sign-in marker gets no answer. UnaddressedReplyEnabled: false in the channel section switches the hint off, and the code keeps working. A code that matches no sign-in is answered with one text for every reason: check the code and send it again, or open the sign-in page again.

The phone number is asked for with the quick reply of the platform. Messenger shows that button only to a user whose profile has a phone number, and does not state that the number was verified, so the phone_number_verified claim is false. A number typed as a message is not accepted.

Known limitations

  • One delivery yields one result: when Meta batches several events into a request, one is processed — an event that names a sign-in before a shared phone number, and that before any other message.
  • A Meta app without Advanced Access delivers events — the referral of an m.me link included — only for people who have a role in the app.
  • The profile (name, picture) needs the Business Asset User Profile Access feature, the locale the pages_user_locale permission. A profile the app cannot read leaves the identity as the page-scoped ID alone; the sign-in does not depend on it.
  • The messages are in the language of the user's profile when the app may read the locale, and in the language of the sign-in otherwise. An app refused the locale is asked for it again once an hour, so a permission granted later takes up to an hour to show.
  • Messages are sent as a response within the standard messaging window of 24 hours.
  • The link button to the claims completion form and the buttons after a sign-in are sent as a button template: at most three buttons, a label of up to 20 characters and a text of up to 640 characters (longer ones are cut). The buttons beyond the third are left out.
  • One Page per webhook address: the tenant is the {tenant} segment of the route.

License

Mozilla Public License 2.0 — see the LICENSE file in the repository root; the package carries the MPL-2.0 license expression in its metadata.


Veriqa™ — © Dmitrii Erusov. Sources and mirrors: https://veriqa.app · devs@veriqa.app

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.7.3 113 11/10/2026
0.7.1 117 11/2/2026
0.7.0 123 10/31/2026