how do i get pending group posts from facebook fql

I am the group owner from said group. I am using an User token to access the wall posts like so:

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

How I can I get posts pending approval? am I using the wrong table? Is this possible with FQL or even with Graph?

Answers


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
    

Need Your Help

Trace a deadlock in Ruby

ruby multithreading locking deadlock backtrace

I use BrB to share a datasource for various worker processes in Ruby 1.9 that I fork with Process#fork like the following:

Increase Speed of HTTPClient Connections Android

java android http

I have been searching around for hours now trying to find an answer to this but I cant seem to get anything.