All Posts
This endpoint allows you to see all the posts in your page (posts that were created by the API or directly on facebook)
Settings:
URL | |
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 |
limit | How many posts to get (limit pagination) between 1 to 100 default if not provided: 25 | no | 25 |
after | if you are using limit paging, you can provide the "after" value from previous response to load the next batch | no | U56WDF34FA4TER3DA..... |
Response:
{
"status": "OK",
"from": "463745743546345",
"count": 25,
"posts": [{
"id": "119324881085321_122093459712345",
"message": "Hello fans!",
"created_time": "1783596120",
"updated_time": "1783596120",
"permalink_url": "https://www.facebook.com/...",
"full_picture": "https://scontent...",
"is_published": true,
"shares": 3,
"total_comments": 3,
"total_reactions": 5,
"attachments": { "data": [ { "media_type": "photo", "url": "..." } ] }
}],
"paging": { "after": "QVFIU...", "hasNext": true },
"reason": 1
}
Response-Explain:
Parameter | Description | ||||||||||||||||||||||||||
status | OK or FAIL | ||||||||||||||||||||||||||
count | Total posts in this batch | ||||||||||||||||||||||||||
from | Your ID for the service | ||||||||||||||||||||||||||
posts | Array of all posts inside your facebook page
| ||||||||||||||||||||||||||
paging | key that contains two values: "after" that represents the parameter if you wish to get the next batch. "hasNext" can have true if you have more data to load or false if this is the last data | ||||||||||||||||||||||||||
reason | 'reason' is the status explanation in case of FAIL
|