簡體   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