I’M REPOSTING THIS. I HAVE MISTAKENLY SHARED MY KEYS IN THE OTHER POST. :')
Describe the problem/error/question
Hi everyone, I’m having issues attempting to make my n8n workflow answer Instagram DMs automatically using an agent. I tried lots of different approaches with no luck. I’m not a full expert on APIs and such but I made it work the rest of the ending nodes related to answer comments.
Unsupported post request. Object with ID ‘935743498382082’ does not exist, cannot be loaded due to missing permissions, or does not support this operation
Please share your workflow
Share the output returned by the last node
I’m having many issues. One was about Authentication, other was related to the following:
Bad request - please check your parameters
Unsupported post request. Object with ID ‘935743498382082’ does not exist, cannot be loaded due to missing permissions, or does not support this operation
Information on your n8n setup
**n8n version: 1.81.4
**Database (default: SQLite): None
**n8n EXECUTIONS_PROCESS setting (default: own, main): Own
**Running n8n via (Docker, npm, n8n cloud, desktop app): Web App
The first error is telling you you’re having authentication issues (it’s not receiving a correct API key or credentials). Without more information, like on which specific node is it failing and/or throwing errors, it’s hard to say exactly why.
I noticed your HTTP request nodes have no headers being sent… in an HTTP request, the headers usually contain your API keys or credentials, so my best guess is that’s where the issue is.
Check their documentation to see what headers you need to send in your request.
EDIT: I ran out of daily posts because I’m a new account, but here’s my reply:
You’re trying to message with Instgram yea? I noticed your last node is using the facebook url instead of the instagram one.
The main problems are:
Incorrect API Endpoint: The URL is using the sender’s ID instead of your professional account’s ID and the wrong domain (graph.facebook.com instead of graph.instagram.com).
Incorrect Recipient in the Body: The recipient parameter is set to your professional account’s ID instead of the user’s ID.
Improper Body Structure: The request body isn’t formatted as required by the Instagram API (nested JSON objects).
My bad, I copy’ed my last post’s workflow without further explanation. The one that is failing is the last one on bottom right. The token is going thru the header but I corrected that because I was showing my keys in my last post. I created a new custom credential in order to hide that.
Did you have any luck trying to accomplish this in the past? Comments endpoint work like a charm, but I tried several hours with the messaging endpoint with no luck. The rest of the flow works fine, that one node has clearly bad configuration… Hope I learn a big lesson while fixing this one haha
Is there anything else I coud share with you in order to get this up and working?
"error": {
"message": "The user you requested could not be found.",
"type": "IGApiException",
"code": 100,
"error_subcode": 2534014,
"fbtrace_id": "AMs43TXbKvNfqj1uijFHjZx"
}
So I have a question. What is * recipient:{id:<IGSID>} i dont know where I find IGSID. Can you help me? thank you