How can I resolve this issue?
I am using the Meta WhatsApp Business Cloud API to send messages, but I am facing an issue. My account is set up properly, and the phone number is added correctly, but I get an error when hitting the API.
Tony-Marketing-API.cn is a vibrant community dedicated to Facebook, Meta,Google Ads api, app development, Instagram, and related technologies. It offers valuable bug solutions, troubleshooting cases, and problem-solving strategies shared by users. Stay updated with real-world solutions, development tips, and the latest trends in digital marketing and app development.
I am using the Meta WhatsApp Business Cloud API to send messages, but I am facing an issue. My account is set up properly, and the phone number is added correctly, but I get an error when hitting the API.
I have an app 817043048815683 with an Instagram App Id 2757129471131686 and it is not receiving message_postbacks events when a user clicks on a postback button in messenger.
The app is live, has advanced access permissions instagram_business_basic and instagram_business_manage_messages. The app is subscribed to the messaging_postbacks event through the dashboard (and I also tried through the API.) The Instagram accounts using the app have also been subscribed to the event and verified through the api that the messaging_postbacks event is subscribed to.
All other messaging-related webhooks are being sent, this is the only event that is not.
I have tried unsubscribing and resubscribing the app and the accounts. I do not receive the event if I try sending it to my server from the app dashboard, either. Again, all other events work fine.
Meta Support - Any help appreciated with this bug!
I have an app in Live mode that has been working until I changed my webhook endpoint.
The app is subscribed to 'messaging', 'messaging_seen' and 'messaging_postbacks.' Before changing the webhook url and reverifying, I was receiving messaging and messaging_seen webhooks, but the messaging_postbacks webhook never fired even when a postback button was clicked in messenger.
Now, after changing my webhook url and reverifying it throught he dashboard (and through the API as I read that sometimes subscribing through the dashboard does not work 100%) NONE of the messaging webhooks are being sent.
I have unsubscribed and resubscribed my app and verified subscriptions, unsubscribed and resubscribed my IG Account and verified permissions. I recieve test webhooks from the Dashboard for comments and messaging_seen, but even the test events from the dashboard for messaging_postbacks and messages are not sent.
Any help appreciated!
I have a question about the Instagram webhook. I'm experiencing the following problem with webhook “messaging_seen” requests, Is this a specification?
(1) Multiple messages are unread. (*Messages were sent at different times. 2) When I open a DM thread, a request for “messaging_seen” is sent via webhook. The request is sent as many times as the number of unread messages. (3) Check the contents of the request and you will see that the mid is the same value for all the messages. Is it the mid of the latest message?
Question: When a “messaging_seen” request is sent by webhook, is the specification that the mid in the request is the mid of the latest message among unread messages?
Remarks: https://developers.facebook.com/docs/graph-api/webhooks/reference/instagram/#messaging_seen Although not specifically mentioned in the reference, there is a description like “”mid“: ‘last_message_id_read’” in the TEST for webhook in the Meta app.
Thanks again for all your support.
Translated with DeepL.com (free version)
It’s been over a year since I encountered a bug in Instagram Messaging related to rendering buttons in a carousel. Sometimes, a third button from a different carousel element appears on another element within the same carousel. Strangely, this only affects Android devices.
To help illustrate the issue, I created a Node.js demo that sends a carousel with 10 items. The first nine items each contain three buttons, and the last one contains only one button. However, when the 10th item is rendered, it displays the same second and third buttons as the 4th item in the carousel(could be any other item in carousel). This suggests that the problem affects all of us, not just me.
Below is the Node.js code demo so you can test it You will need to install axios , your page access token and your recipient ID for Instagram
``` // Install axios with: npm install axios const axios = require('axios');
// Replace these with your actual values: const PAGE_ACCESS_TOKEN = ''; // your pageaccesstoken const recipientId = ''; //your psid
// Build the carousel elements with dynamic image URLs const elements = [];
for (let i = 1; i <= 10; i++) { // For the 4th and 10th items, create only 2 buttons; for all others, create 3 buttons. const buttons = i === 10 ? [ { type: 'postback', title: Button ${i}-1, payload: BUTTON_${i}_1 }, ] : [ { type: 'postback', title: Button ${i}-1, payload: BUTTON_${i}_1 }, { type: 'postback', title: Button ${i}-2, payload: BUTTON_${i}_2 }, { type: 'postback', title: Button ${i}-3, payload: BUTTON_${i}_3 } ];
elements.push({ title: Item ${i}, image_url: https://placehold.co/600x400?text=${i}, // Dynamic image URL for each item subtitle: Item ${i}, buttons: buttons }); }
// Create the message payload const messageData = { recipient: { id: recipientId }, message: { attachment: { type: 'template', payload: { template_type: 'generic', elements: elements } } } };
// Function to call the Facebook Send API function callSendAPI(messageData) { axios.post(https://graph.facebook.com/v22.0/me/messages?access_token=${PAGE_ACCESS_TOKEN}, messageData) .then(response => { console.log('Message sent successfully:', response.data); console.log(messageData.message.attachment.payload.elements) }) .catch(error => { console.error('Error sending message:', error.response ? error.response.data : error.message); }); }
// Send the message callSendAPI(messageData);