Edit a post

This endpoint allows you to edit a post you previously created (using our API or directly on facebook).

You can't change the media after publish, this endpoint only allows changing the body text.


Settings:

URL

https://api.99digital.co.il/facebook/pages/editPost

Method

JSON via POST


Body:

Parameter

Description / Example

Mandatory

Example

apiKey

Your API key for the service

yes

4124-634t462-634733463-5734346

from

The ID you received for the connection

yes

463745743546345

postId

The post ID you wish to edit

yes

15625364215_56994166514

body

The new body of the post. It can have plain text only and \n for line break

Maximum 63,206 characters.

yes

Welcome to my edited Post!


Response:

{
"status": "OK",
"postId": "15234562345623_952362434423178",
"timestamp": 1600115719,
"from": "463745743546345",
"reason": 1
}


Response-Explain:

Parameter

Description

status

OK or FAIL

postId

The post ID that you changed

timestamp

Time stamp of the message

from

Your ID for the service

reason

'reason' is the status explanation in case of FAIL

1

not FAIL. the status is OK

2

Your "from" number account does not exist, or JSON syntax error

3

wrong apiKey

5

Missing or invalid content. the 'body'

6

Wront connection type. you keys/id is correct but you are using the wrong endpoint

(for example: your onboarding was for facebook messenger but you are using this facebook posts endpoint)

7

Onboarding still in progress

10

You must do onboarding again, the connection has expired

12

Rate limit error. too many requests. please wait few minutes and try again

13

The postId is invalid or wrong

15

The content you posted was rejected by meta or bad media / format / size. could also indicate policy violation inside the content.

16

General error, try again