繁体   English   中英

我如何从facebook fql获得待定的组帖子

[英]how do i get pending group posts from facebook fql

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

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吗?

检查批准或不批准的职位(在一个小组内)

  1. GET使用图形API的有关岗位的细节-

     $result = $facebook->api("/POST_ID"); 
  2. 如果帖子尚未获得批准,则结果中将缺少关键字: actionssubscribed ; 这是因为这些帖子不符合这些密钥的条件。 因此,您可以使用任一键创建支票。 例如

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM