使用图形 API 获取(识别)对评论的回复 [英] Get (Identify) Replies to Comments Using the Graph API

查看:15
本文介绍了使用图形 API 获取(识别)对评论的回复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过 Facebook 上新的回复"评论"功能,我注意到回复评论的方式与评论相同.但是我想知道有没有办法区分这两者?

With the new "Reply" to "Comments" feature on Facebook, I've noticed that replies to comments are treated the same as comments. But I was wondering if there is anyway to distinguish the two?

推荐答案

是的.您可以在 Graph API 中查询每个 comment 对象以获取其 parent 字段的值.如果有问题的评论是回复,则 parent 字段的值将是对父评论的引用.否则,不返回任何值.

Yes. You can query each comment object in the Graph API for the value of its parent field. If the comment in question is a reply, then the value of the parent field will be a reference to the parent comment. Otherwise, no value is returned.

此处参考:https://developers.facebook.com/docs/reference/api/评论/

这篇关于使用图形 API 获取(识别)对评论的回复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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