【问题标题】:Determine when a facebook friend shared post of specific type?确定 Facebook 好友何时分享特定类型的帖子?
【发布时间】:2013-04-30 12:55:27
【问题描述】:

在我的 android 应用程序中,我想知道特定朋友分享特定类型的帖子(例如视频)的时间或(限制偏移量以获取流)。例如,我想知道 ID 为 522601313 的用户上次分享视频的时间或(流的限制偏移)。我稍后会在我的 FQL 查询中使用它,就像在

中一样
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

在上面的查询中我想知道限制和偏移量

有可能吗?

如果是,请提出一些解决方案,我该如何完成?

【问题讨论】:

    标签: android facebook facebook-graph-api facebook-opengraph facebook-fql


    【解决方案1】:

    限制 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

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

    OR 函数

    SELECT text FROM comment where object_id=803696294074
    

    【讨论】:

    • 我想知道包含特定用户分享的视频的limit和offset
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-09-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-15
    • 2017-08-11
    • 1970-01-01
    相关资源
    最近更新 更多