facebook api隐藏评论 [英] facebook api hide comment

查看:194
本文介绍了facebook api隐藏评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试隐藏页面中的帖子中的评论,我已经尝试过:

I'm trying to hide a comment in a post in my page, i've tried:

curl -X "POST" -k "https://graph.facebook.com/v2.4/[comment_id]/?access_token=[access_token]&is_hidden=true"

文档中所述,正在收到此回复:

as stated in the documentation, i am getting this response:

{"error":{"message":"(#210) Updating is_hidden requires a Page access token","type":"OAuthException","code":210}}

我也尝试在中使用--data发送参数,但是它也不起作用

also i tried sending the parameters using --data in curl but it didn't work too

注意:该令牌是页面访问令牌

Note: the token is a page access token

推荐答案

以下方法应该起作用:

curl -XPOST \
     -k \
     -F 'is_hidden=true' \
     -F 'access_token=[access_token]' \
     https://graph.facebook.com/v2.4/[comment_id]

此外,请检查您的访问令牌以符合

Also, check your access token to comply to

权限

  • 需要具有publish_actions权限的用户访问令牌才能编辑该用户发布的评论.
  • 要编辑由该页面发布的评论,需要具有publish_pages权限的页面访问令牌.

请参见

这篇关于facebook api隐藏评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆