使用Graph API获取(识别)回复评论 [英] Get (Identify) Replies to Comments Using the Graph API
本文介绍了使用Graph 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中查询$ 父
字段的值的每个注释
对象。如果有问题的评论是回复,那么 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/Comment/
这篇关于使用Graph API获取(识别)回复评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文