【问题标题】:Facebook Graph API - How to get scheduler post's all detail in graph APIFacebook Graph API - 如何在图形 API 中获取调度程序帖子的所有详细信息
【发布时间】:2019-08-06 19:33:42
【问题描述】:

我是 facebook 图形 API 的新手,我想获取调度程序帖子的所有详细信息,例如

  • 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/

【问题讨论】:

  • 您能确定产生错误的确切字段吗?只使用一个进行测试。
  • @luschn 我用这个 API GET https://graph.facebook.com/v4.0/...?fields={id}&access_token=<page_access_token>

标签: facebook facebook-graph-api


【解决方案1】:

括号和点只是占位符。

错误

fields={id,message,...}

正确

fields=id,message,...

此外,您必须使用预定帖子的 ID,而不是在 API 调用中仅使用“...”。


要获取所有预定的帖子,请使用此端点:https://developers.facebook.com/docs/graph-api/reference/page/scheduled_posts/

例子:

/me/scheduled_posts?fields=id,message&access_token=<your-page-token>

【讨论】:

  • 再次,我得到了同样的错误(#803) Some of the aliases you requested do not exist: ...。 API URL 对吗?
  • 您真的只是尝试使用“fields=id&access_token=...”吗?请评论您的确切 api 调用(当然没有令牌)
  • 拜托,你能写完整的API吗?
  • 我的 API 是 GET https://graph.facebook.com/v4.0/...?fields=id,message&amp;access_token=&lt;page_access_token&gt;
  • 这不可能是确切的 api 调用......你没有使用“......”,对吧? ;)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2014-01-02
  • 2015-07-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-03-19
  • 1970-01-01
相关资源
最近更新 更多