PostZen
Inbox

Unlike a comment

DELETE
/v1/inbox/comments/{postId}/{commentId}/like

Removes the connected Facebook Page's or TikTok account's like from a comment. Facebook Pages and TikTok accounts only: Instagram and Threads answer 400 unsupported. Requires a read-write API key and the account's comment-management scope. Limited to 120 per hour per user, shared with liking.

Authorization

bearerAuth
AuthorizationBearer <token>

PostZen API key.

In: header

Path Parameters

postId*string

Post the comments belong to. Accepts a PostZen post id — resolved to the id the post was published under for accountId — or the platform's own post/media id, which is the common case because the inbox covers every post the account has, not only the ones PostZen published. Instagram and Facebook also accept a comment id here.

commentId*string

Platform id of the comment to like or unlike.

Query Parameters

accountId*string

PostZen account id of the connected Facebook Page or TikTok account that owns the post.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/inbox/comments/string/string/like?accountId=string"
{  "status": "success",  "commentId": "987654321098765_1122334455667788",  "liked": false,  "platform": "facebook"}
{  "error": "Liking comments is supported for Facebook and TikTok accounts only.",  "code": "unsupported",  "platform": "instagram"}
{  "error": "Unauthorized"}
{  "error": "Reconnect the account to grant PostZen access to its comments.",  "code": "platformCapabilityMissing",  "platform": "facebook"}
{  "error": "That post could not be found.",  "code": "postNotFound"}
{  "error": "This connection needs to be reauthorized before its comments can be read.",  "code": "connectionDead",  "platform": "instagram"}
{  "error": "(#4) Application request limit reached",  "code": "4",  "platform": "instagram",  "platformError": "(#4) Application request limit reached"}
{  "error": "Failed to create post"}
{  "error": "Unsupported get request.",  "code": "100",  "platform": "facebook",  "platformError": "Unsupported get request."}

Like a comment POST

Likes a comment as the connected Facebook Page or TikTok account. Facebook Pages and TikTok accounts only: Instagram and Threads have no comment-like API and answer `400 unsupported`, which reconnecting does not change. `canLike` on the comment says whether the call can succeed, and `isLiked` reflects the result after the next read. Requires a read-write API key and the account's comment-management scope. Limited to 120 per hour per user, shared with unliking.

Send a private reply to a comment POST

Sends the commenter one direct message addressed to their comment, so it reaches their inbox without an existing conversation. Works for Instagram accounts and Facebook Pages; Threads and TikTok accounts answer `400 platformUnsupported`. Meta allows one private reply per comment, sent within 7 days of the comment; a second attempt, or a comment Meta will not take a private reply for, answers `400 privateReplyConsumed`. The body is `message` with optional `quickReplies` or `buttons` (not both), under the same rules as `POST /v1/inbox/conversations/{conversationId}/messages`; attachments, templates and message tags are refused with a 400. Until the person answers, this reply is the only message the account can send them. When PostZen already holds a conversation with the commenter the reply is stored in it, and `message.sent` is emitted once. Needs the account's messaging scope (`pages_messaging` on a Facebook Page) and counts toward the plan's monthly inbox send allowance. Shares the direct message send limit of 120 per hour per user. Requires a read-write API key.