Skip to main content

Hide Comment

POST 

/instagram/page/hideComment

Hide a comment allows you to make a comment hidden (or back to visible) from the public, so it stays visible only to the writer of the comment, their friends and the admin of the page.

Settings:

SettingValue
URLhttps://api.99digital.co.il/instagram/page/hideComment
MethodJSON via POST
HeaderYour API key for the service (the apiKey header)

Body:

ParameterDescription / ExampleMandatoryExample
fromThe ID you received for the connectionyes463745743546345
commentIdThe comment ID you wish to do the action on (the id of the comment in All Comments)yes652346734563_3463234623
hide1 - hide. 0 - unhide. If you leave it out, the comment is hidden. true / false work too, as a number or a string; any other value returns reason 8no (default 1)1

Response:

{
"status": "OK",
"commentId": "15234562345623_952362434423178",
"from": "463745743546345",
"timestamp": 1600115719,
"hidden": true,
"reason": 1
}

Response-Explain:

ParameterDescription
statusOK or FAIL
commentIdThe comment ID you did the action on (hid or unhid)
fromYour ID for the service
timestampTime stamp of the message
hiddentrue if the comment was hidden. false if the comment is not hidden

reason:

ValueInformation
1Not FAIL. The status is OK
2Your "from" account does not exist (for example, its onboarding is not finished yet) or is missing, or JSON syntax error
3Wrong apiKey (the apiKey header is missing or wrong)
4commentId is invalid or wrong (missing, or not a valid comment ID)
6Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Instagram endpoint)
7The connection is not active (it was disabled)
8'hide' is not 1 or 0 (or true / false)
10You must do the onboarding again, the connection has expired
11A permission is missing: the connection does not have Meta's permission for this action
12Rate limit error. Too many requests. Please wait a few minutes and try again
13The commentId is invalid or wrong: the comment was not found, or it is not accessible
15Meta rejected the request: an invalid parameter, or a policy violation
18General error, try again

Remarks:

  • Hiding is reversible: send hide 0 to make the comment visible again. To remove a comment for good, use Delete Comment.
  • Hiding or unhiding an Instagram comment sends no webhook: Instagram does not report it (see Instagram Comment).

Request​

Responses​

The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.