facebook-graph-api - 使用 graph api 隐藏帖子

标签 facebook-graph-api curl

我已经创建了调用图 API

https://graph.facebook.com/me/feed/?access_token=<token>

它返回类似以下内容: {“id”:“_”}

现在我想通过 API 调用隐藏这篇文章

curl -F "is_hidden=true" "https://graph.facebook.com/<POST_ID>?access_token=<token>

但我收到了这样的回复:

{"error":{"message":"(#100) The parameter reorder_pids is required", "type": "OAuthException", "code":100}}

这里有人使用 api 来做这个吗? (隐藏帖子) 如果是,它对你有用吗? ;)

最佳答案

我找到了一种方法来隐藏 Facebook 页面上的帖子。

curl -F "timeline_visibility=hidden" "https://graph.facebook.com/<POST_ID>/?access_token=<page_token>

...它返回 true。

关于facebook-graph-api - 使用 graph api 隐藏帖子,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13435670/

相关文章:

php cURL - POST 不工作

elasticsearch - curl “(6) Could not resolve host: http”

facebook-graph-api - 图谱 API 未返回 total_video_views

node.js - 如何使用 node.js 从 facebook API 获取 facebook 好友

php - 通过 API 获取 Facebook 故事

node.js - 无法在 debian 上安装 node-libcurl

curl - 无法通过身份验证使用 wget 或 curl 下载

javascript - 使用 Passport.js 获取 Facebook 个人资料的链接

ios - iOS 应用程序中的点赞按钮

curl - 将 curl 请求从 Chrome 复制到 Postman 无法按预期工作