Publishing
List posts
List the posts published by the Page.
GET
/
meta
/
v25.0
/
{pageId}
/
posts
List posts
curl --request GET \
--url https://gateway.hookmyapp.com/meta/v25.0/{pageId}/postsimport requests
url = "https://gateway.hookmyapp.com/meta/v25.0/{pageId}/posts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://gateway.hookmyapp.com/meta/v25.0/{pageId}/posts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://gateway.hookmyapp.com/meta/v25.0/{pageId}/posts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gateway.hookmyapp.com/meta/v25.0/{pageId}/posts"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://gateway.hookmyapp.com/meta/v25.0/{pageId}/posts")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.hookmyapp.com/meta/v25.0/{pageId}/posts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyLists the Page’s posts, newest first.
Authentication
Use thehmat_ channel token from GET /meta/channels/{id}/token or hookmyapp channels token <channel>. Do not use an hmok_ API key for this call.
Authorization: Bearer hmat_...
Path parameters
string
required
The connected Page id.
Query parameters
string
Comma-separated fields. Use
id,message,created_time,permalink_url,status_type.integer
Page size, up to 100.
string
Cursor from a previous response’s
paging.cursors.after.Example
curl "https://gateway.hookmyapp.com/meta/v25.0/{PAGE_ID}/posts?fields=id,message,created_time,permalink_url,status_type" \
-H "Authorization: Bearer hmat_..."
Successful response
{
"data": [
{
"id": "100000000000001_500000000000001",
"message": "We are open today until 8pm.",
"created_time": "2026-09-15T09:10:49+0000",
"permalink_url": "https://www.facebook.com/...",
"status_type": "mobile_status_update"
}
],
"paging": { "cursors": { "before": "...", "after": "..." } }
}
⌘I
List posts
curl --request GET \
--url https://gateway.hookmyapp.com/meta/v25.0/{pageId}/postsimport requests
url = "https://gateway.hookmyapp.com/meta/v25.0/{pageId}/posts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://gateway.hookmyapp.com/meta/v25.0/{pageId}/posts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://gateway.hookmyapp.com/meta/v25.0/{pageId}/posts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gateway.hookmyapp.com/meta/v25.0/{pageId}/posts"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://gateway.hookmyapp.com/meta/v25.0/{pageId}/posts")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.hookmyapp.com/meta/v25.0/{pageId}/posts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body