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 都可以做到这一点吗?

4

1 回答 1

4

To check whether a post (in a group) in approved or not-

  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
    
于 2013-08-13T10:37:24.553 回答