How to receive the "Instagram Business Account ID" instead of "Instagram Scoped User ID (IGSID)" in the instagram comment webhook. Also, is it possible to add custom input in this webhook
1

Hello, We're currently receiving the webhook for instagram comments as below.

//////////////////////// Instagram Comment Webhook Payload /////////////////////////////// { "entry": [ { "id": 17841464780021342, "time": 1726039190, "changes": [ { "value": { "from": { "id": 496274539931542, "username": "aditya_zanjad_hodusoft" }, "media": { "id": 18030876632058880, "media_product_type": "FEED" }, "id": 18074865634493149, "parent_id": 18018720314428856, "text": "Hello we will get back to you soon..." }, "field": "comments" } ] } ], "object": "instagram" } //////////////////////// Instagram Comment Webhook Payload ///////////////////////////////

The sender ID [From ID] that we're receiving is of the Instagram Post Owner. But, it is a "Instagram Scoped User ID (IGSID)'. Is it possible that, we can get the original ID of that user [Post Owner] in the webhook. In our case, the ID would be '17841464780021342'.

To make comments on behalf of this user [Post Owner], we're using the API "/replies".

Also, is it possible to add any custom metadata to the webhook payload?

Our end goal is to identify if the comment was made by the "Instagram Post Owner" or not.

Qahodu
Asked about 3 months ago
Selected Answer
1

Hi You can easily get your desire data , you can't edit webhook data but you can check sender is you or another user using checking username

September 12 at 6:19 AM
Misagh