Facebook 图表 API - 如何在图表 API 中获取调度程序 post 的所有详细信息
Facebook Graph API - How to get scheduler post's all detail in graph API
我是 facebook graph API 的新手,我想获取调度程序 post 的所有详细信息,例如
full_picture
message
- 等等
我用过:
GET v4.0/...?fields={fieldname_of_type_ScheduledPost} HTTP/1.1
Host: graph.facebook.com
但是,我得到了错误:
{
"error": {
"message": "(#803) Some of the aliases you requested do not exist: ...",
"type": "OAuthException",
"code": 803,
"fbtrace_id": "A-aQAYXFbAdSX7oMYfcUP_3"
}
}
参考,https://developers.facebook.com/docs/graph-api/reference/scheduled-post/
括号和点只是占位符。
错误
fields={id,message,...}
正确
fields=id,message,...
此外,您必须使用预定 post 的 ID 而不是在 API 调用中仅使用“...”。
要获取所有计划的 posts,请使用此端点:https://developers.facebook.com/docs/graph-api/reference/page/scheduled_posts/
示例:
/me/scheduled_posts?fields=id,message&access_token=<your-page-token>
我是 facebook graph API 的新手,我想获取调度程序 post 的所有详细信息,例如
full_picture
message
- 等等
我用过:
GET v4.0/...?fields={fieldname_of_type_ScheduledPost} HTTP/1.1
Host: graph.facebook.com
但是,我得到了错误:
{
"error": {
"message": "(#803) Some of the aliases you requested do not exist: ...",
"type": "OAuthException",
"code": 803,
"fbtrace_id": "A-aQAYXFbAdSX7oMYfcUP_3"
}
}
参考,https://developers.facebook.com/docs/graph-api/reference/scheduled-post/
括号和点只是占位符。
错误
fields={id,message,...}
正确
fields=id,message,...
此外,您必须使用预定 post 的 ID 而不是在 API 调用中仅使用“...”。
要获取所有计划的 posts,请使用此端点:https://developers.facebook.com/docs/graph-api/reference/page/scheduled_posts/
示例:
/me/scheduled_posts?fields=id,message&access_token=<your-page-token>