Interrupción parcialshare-external
The thread owner has archived or deleted this conversation, or the thread does not exist.
2

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!

Clubble
Enviada hace 2 meses aproximadamente
Respuesta seleccionada
1

same here!

29 de sep. a las 7:07
Ali
1

same here!

4 de octubre a las 4:04
Сергей
1

Same problem. I ask Meta representatives to give a detailed answer

4 de octubre a las 4:21
Юрий
Clubble

Hi, did you get any response from meta representative?

6 de octubre a las 22:35
Юрий

No. I'm still waiting for an answer

7 de octubre a las 3:56