-1

在我的android應用程序中,我想知道當某個特定的朋友分享特定類型視頻的帖子時,OR(限制偏移量以獲取流)。例如,我想知道時間或(流的限制偏移量)當一個用戶最後共享一個視頻的ID爲522601313。我會在確定Facebook朋友何時分享特定類型的帖子?

SELECT post_id, source_id, actor_id, target_id, message, 
attachment, permalink, type , 
created_time,timeline_visibility,updated_time 
FROM stream WHERE source_id =522601313 and type=80 
limit = XXXX offset = XXXX 

在我的FQL查詢後使用它像在上面查詢我想知道的限制和偏移

這可能嗎?

如果是,請提出一些解決方案我該怎麼做到這一點?

回答

0

限制1只檢索最新的視頻上傳,並獲得創建的時間。

SELECT created_time, description, embed_html, format,length,link, owner, src, src_hq, thumbnail_link, title, updated_time, vid FROM video WHERE owner = 'USER_ID' LIMIT 1 

參考:https://developers.facebook.com/docs/reference/fql/video/

爲VID(比方說803696294074),你可以做更多,

https://graph.facebook.com/803696294074?access_token=USER_ACCESS_TOKEN

OR

https://graph.facebook.com/803696294074/comments?access_token=USER_ACCESS_TOKEN

OR fql

SELECT text FROM comment where object_id=803696294074 
+0

我想知道包含特定用戶共享的視頻的限制和偏移量 – 2013-04-30 13:10:24

+0

我編輯了我的答案:) – 2013-04-30 13:47:16

相關問題