如何从Facebook FQL获取待处理的群组帖子

4

我是该群组的所有者。我正在使用用户令牌来访问墙上的帖子,如下所示:

SELECT post_id,
       source_id,
       actor_id,
       target_id,
       message,
       like_info,
       comment_info,
       created_time,
       attachment,
       timeline_visibility,
       privacy,
       is_hidden,
       is_published
FROM   stream
WHERE  type = 308
       AND source_id  = "482501211816484"
ORDER BY created_time DESC

我怎样才能获取待批准的文章?我使用的表格是否正确?这个问题可以通过FQL或者Graph实现吗?


你找到解决方案了吗? - Se Norm
1个回答

4

检查帖子(在群组中)是否已批准的方法-

  1. GET the details of the concerning post using Graph API -

    $result = $facebook->api("/POST_ID");
    
  2. If the post is not approved yet, the keys: actions and subscribed would be missing from the result; this is because these posts are not eligible for these keys. So, you can create a check using either of the keys. For eg,

    if (array_key_exists("actions",$result))
       // the post is approved
    else
       // not approved
    

这些ID将如何被检索?$facebook->api("/groups_id?fields=feed.fields(id,message)"); 无法提取它,问题中的fwl也无法。 - Angel S. Moreno
请使用以下代码 - GROUP_ID/feed?fields=id,message - Sahil Mittal
我已经授予了自己所有权限。我是该组的所有者。我使用了Graphs API Explorer工具。在路径中,我输入/482501211816484/feed?fields=id,message,但这两个未处理的状态更新没有显示。我进入小组页面https://www.facebook.com/groups/482501211816484/pending/,在那里我看到有两个未处理的更新。我批准一个并返回Graph Explorer。现在它出现了。我想测试您的答案,但如果没有一种检索待处理请求帖子ID的方法,我不知道如何测试它。 - Angel S. Moreno
我明白你的意思,你是对的。如果我找到了任何解决方案,我会告诉你的。 - Sahil Mittal

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接