Replies: 1 comment 3 replies
-
hi, did you configure your token on program.cs file with dependency injection. WhatsAppBusinessCloudApiConfig whatsAppConfig = new WhatsAppBusinessCloudApiConfig();
whatsAppConfig.WhatsAppBusinessPhoneNumberId = builder.Configuration.GetSection("WhatsAppBusinessCloudApiConfiguration")["WhatsAppBusinessPhoneNumberId"];
whatsAppConfig.WhatsAppBusinessAccountId = builder.Configuration.GetSection("WhatsAppBusinessCloudApiConfiguration")["WhatsAppBusinessAccountId"];
whatsAppConfig.WhatsAppBusinessId = builder.Configuration.GetSection("WhatsAppBusinessCloudApiConfiguration")["WhatsAppBusinessId"];
whatsAppConfig.AccessToken = builder.Configuration.GetSection("WhatsAppBusinessCloudApiConfiguration")["AccessToken"];
whatsAppConfig.AppName = builder.Configuration.GetSection("WhatsAppBusinessCloudApiConfiguration")["AppName"];
whatsAppConfig.Version = builder.Configuration.GetSection("WhatsAppBusinessCloudApiConfiguration")["Version"];
builder.Services.AddWhatsAppBusinessCloudApiService(whatsAppConfig);
var app = builder.Build(); |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, first thanks for this project....
I already add my token on WhatsAppNotificationController, but still getting the error
already verifiy my webhook from facebook... and suscribe to messages. I am able to send messages from whatsapp api using postman, but I need to know Is there somewhere else I should add my token on your code?
My private readonly WhatsAppBusinessCloudApiConfig _whatsAppConfig; on every controller always return null
I am using Visual Studio 2022, .net 8.0
Thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions