Partial Outageshare-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
Asked about 2 months ago
Selected Answer
1

same here!

September 29 at 7:07 AM
Ali
1

same here!

October 4 at 4:04 AM
Сергей
1

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

October 4 at 4:21 AM
Юрий
Clubble

Hi, did you get any response from meta representative?

October 6 at 10:35 PM
Юрий

No. I'm still waiting for an answer

October 7 at 3:56 AM