Posts on your Facebook Page with engagement counts
facebook.facebook.page.postsList the posts published on your Facebook Page with their engagement counts
- 价格
- free按供应商原价
- 成功率
- 100%近 30 天 · 194 次
- 延迟 p50
- 320 毫秒p95 1 秒
- 最后验证
- —尚未验证
GEThttps://toolswitch.dev/v1/tools/facebook.facebook.page.posts预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
needs the Page token, which treg injects once this Page is selected on the connection; with the user token Meta answers code 190 / subcode 2069032 ('A Page access token is required for this call'). page_id must be the selected Page. /feed is the wider edge (it also includes posts by visitors); /posts is the Page's own
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 路径参数 | ||||
page_id | 字符串 | 必填 | numeric id of the Page selected on the connection | 123456789012345 |
| 查询参数 | ||||
limit | 整数 | 可选 | default 25 | 25 |
since | 字符串 | 可选 | Unix timestamp or YYYY-MM-DD | 2026-07-01 |
until | 字符串 | 可选 | ||
fields | 字符串 | 必填 | the .summary(true) suffixes turn the nested edges into counts instead of full lists | id,message,created_time,permalink_url,shares,comments.summary(true).limit(0),reactions.summary(true).limit(0) |
- 路径参数
page_id字符串必填numeric id of the Page selected on the connection
示例:
123456789012345- 查询参数
limit整数可选default 25
示例:
25since字符串可选Unix timestamp or YYYY-MM-DD
示例:
2026-07-01until字符串可选fields字符串必填the .summary(true) suffixes turn the nested edges into counts instead of full lists
示例:
id,message,created_time,permalink_url,shares,comments.summary(true).limit(0),reactions.summary(true).limit(0)
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
curl -X GET 'https://toolswitch.dev/v1/tools/facebook.facebook.page.posts' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/facebook.facebook.page.posts",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/facebook.facebook.page.posts", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 free 计费,已含服务费。