Posts under category Meta & Facebook

I’m facing an issue with the Instagram Graph API. A day ago, I successfully replied to a comment and sent a DM without any problems. However, after replying to a total of 106 comments, I started receiving this error when trying to send DMs:
"The thread owner has archived or deleted this conversation, or the thread does not exist."
I can still reply to comments, but I’m unable to send DMs. I've tried multiple approaches, but the error persists.
Here’s the error response for reference:
error: {
message: 'The thread owner has archived or deleted this conversation, or the thread does not exist.',
type: 'IGApiException',
code: 100,
error_subcode: 2534001,
fbtrace_id: 'ARmNpr-Ma3GfRPrQecjksw8'
}
Code
export const sendDirectMessage = async (
ownerId: string,
commentId: string,
message: string
) => {
try {
// https://developers.facebook.com/docs/instagram-platform/instagram-api-with-instagram-login/messaging-api/private-replies
const { data } = await axios.post(
`https://graph.instagram.com/${ownerId}/messages`,
{
recipient: { comment_id: commentId },
message: { text: message },
},
{
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${instagramAccessToken}`,
},
}
);

return {
status: 200,
message: "Direct message sent successfully",
resData: data,
};
} catch (error: any) {
const errorMessage = error.response ? error.response.data : error.message;
return { status: 403, message: errorMessage.error.message };
}
};
Has anyone encountered this issue or have any ideas on what might be going wrong? I’d really appreciate any insights!
Thanks!

I'm following this tutorial https://developers.facebook.com/docs/whatsapp/cloud-api/get-started but on step 2 I can't create a test number, I keep getting a red message saying that test numbers is not working and I need to contact support. Is that a workaround besides killing my personal number to turn into a bussines number? I just wanna test some stuff.

Every time I try to moderate comments, I get this error message:
"The content you requested cannot be displayed right now. It may be temporarily unavailable, the link you clicked on may have expired, or you may not have permission to view this page."
Everyone on our account has this issue. We have cleared caches, tried different computers, used different browsers, used different accounts, etc. Hoping it was glitch, but we're going on 4 days of non-moderation. The spam content is building up. We aren't able to moderate any comments in any way.

Problem: I’m using the Meta WhatsApp Business API to send template messages. When I try to send the first message using Postman, I get a 200 OK response, but the message is not delivered to the recipient's phone. However, if the user sends me a message first, the API works as expected, and the message is delivered.

Here is the JSON request I'm using:

{   "messaging_product": "whatsapp",   "to": "91790******",   "type": "template",   "template": {     "name": "hello_world",     "language": {       "code": "en_US"     }   } } 

The response I receive is:

{   "messaging_product": "whatsapp",   "contacts": [     {       "input": "91790******",       "wa_id": "91790******"     }   ],   "messages": [     {       "id": "wamid.HBgMOTE3OTA0NjMwMzM3F***dfdffQkI1QzcwNTd**==",       "message_status": "accepted"     }   ] } 

I’ve confirmed that the template (hello_world) is approved and active. The API request returns a 200 OK response, but the message is still not delivered to the recipient unless they initiate the conversation by sending a message first.

Question: Why is the message not being delivered when sending it as the first message? How can I send the first template message without requiring the user to send a message first?

Additional Details: I’m using the Meta WhatsApp Business API. The template is approved, and the recipient's phone number is valid.