[英]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?
这可能用FQL甚至是Graph吗?
To check whether a post (in a group) in approved or not- 检查批准或不批准的职位(在一个小组内)
GET
the details of the concerning post using Graph API - GET
使用图形API的有关岗位的细节-
$result = $facebook->api("/POST_ID");
If the post is not approved yet, the keys: actions
and subscribed
would be missing from the result; 如果帖子尚未获得批准,则结果中将缺少关键字:
actions
和subscribed
; 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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.