stream - Facebook FQL : Difference between status table and stream table?

标签 stream facebook-fql status

谁能告诉我状态表和流表有什么区别?

我正在使用图形浏览器查询我自己的帖子,我发现一些状态更新仅出现在状态表中,而其他更新则出现在流和状态表中。当我转到自己的时间轴时,我可以看到两个表中的帖子。

这是怎么回事?为什么有些只出现在帖子表中,却出现在我的时间轴上?!

我试图找到我所有公开可见的帖子的列表,似乎要做到这一点,我需要查询两个表并最终得到一些重复项。有更好的办法吗?

这是一个例子:

    graph.facebook.com/10150680671412355

{
  "id": "10150680671412355", 
  "from": {
    "name": "Alan Byrne", 
    "id": "509517354"
  }, 
  "message": "Beans on toast.", 
  "updated_time": "2012-03-14T10:53:01+0000", 
  "likes": {
    "data": [
      {
        "id": "xxxxx", 
        "name": "xxxx"
      }
    ], 
    "paging": {
      "next": "https://graph.facebook.com/10150680671412355/likes?method=GET&metadata=true&format=json&callback=___GraphExplorerAsyncCallback___&access_token=AAACEdEose0cBAPjaO9gCyMZA2TT5hRE7iEkgmksfpNneFdtshFDfp0oM3hiX6I57vUkzGZAyXW5c9YaM1WQFUxt2zTZCden7zTAlbMSDAZDZD&limit=25&offset=25&__after_id=100001368900242"
    }
  }, 
  "comments": {
    "data": [
      {
        "id": "10150680671412355_31516486", 
        "from": {
          "name": "xxxxx", 
          "id": "xxxxx"
        }, 
        "message": "Peasant. Baked beans on the other hand...", 
        "can_remove": true, 
        "created_time": "2012-03-14T11:20:35+0000"
      }
    ], 
    "paging": {
      "next": "https://graph.facebook.com/10150680671412355/comments?method=GET&metadata=true&format=json&callback=___GraphExplorerAsyncCallback___&access_token=AAACEdEose0cBAPjaO9gCyMZA2TT5hRE7iEkgmksfpNneFdtshFDfp0oM3hiX6I57vUkzGZAyXW5c9YaM1WQFUxt2zTZCden7zTAlbMSDAZDZD&limit=25&offset=25&__after_id=10150680671412355_31516486"
    }
  }, 
  "type": "status"
}

然而,当我在同一天扫描流上的帖子时,这个帖子没有回来

fql?q=select message,post_id,created_time from stream where source_id=509517354 and created_time > 1331596800 and created_time < 1331856000

{
  "data": [
    {
      "message": "", 
      "post_id": "509517354_10150680640782355", 
      "created_time": 1331720877
    }, 
    {
      "message": "", 
      "post_id": "509517354_10150680632467355", 
      "created_time": 1331720499
    }, 
    {
      "message": "MY COMPUTER DOES NOT HAVE VIRUSES! STOP CALLING ME! ARGH!", 
      "post_id": "509517354_10150680618357355", 
      "created_time": 1331719866
    }, 
    {
      "message": "", 
      "post_id": "509517354_10150680602327355", 
      "created_time": 1331719906
    }, 
    {
      "message": "I did it!", 
      "post_id": "509517354_10150680491832355", 
      "created_time": 1331716355
    }, 
    {
      "message": "", 
      "post_id": "509517354_10150680446052355", 
      "created_time": 1331714440
    }, 
    {
      "message": "It got to Australia.\n", 
      "post_id": "509517354_365689393454249", 
      "created_time": 1331679835
    }, 
    {
      "message": "", 
      "post_id": "509517354_107999992664739", 
      "created_time": 1331677643
    }, 
    {
      "message": "", 
      "post_id": "509517354_10150678888762355", 
      "created_time": 1331671872
    }, 
    {
      "message": "Booooo", 
      "post_id": "509517354_268316116580687", 
      "created_time": 1331632096
    }, 
    {
      "message": "'spose I should wander into the office...", 
      "post_id": "509517354_10150678259167355", 
      "created_time": 1331625013
    }, 
    {
      "message": "", 
      "post_id": "509517354_10150678258862355", 
      "created_time": 1331624991
    }, 
    {
      "message": "", 
      "post_id": "509517354_10150678257547355", 
      "created_time": 1331624907
    }, 
    {
      "message": "", 
      "post_id": "509517354_10150678250602355", 
      "created_time": 1331631742
    }
  ]
}

最佳答案

信息流包含各种类型的帖子 - 链接、签到、照片和状态更新。

状态表仅包含状态更新 - 没有附加链接、照片等的文本。

如果您希望找到与时间线类似的内容,则需要使用流表。

关于stream - Facebook FQL : Difference between status table and stream table?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9965916/

相关文章:

javascript - 减少 JavaScript 中麦克风输入的音频播放延迟?

图 API 和自定义操作

java - "Request.newMeRequest"和 "new http Request("有什么区别

C# PrintDocument 和打印机状态

java - 如何在响应式(Reactive) Java 中将新对象添加到现有流中?

java 。从 FTP 读取文件但不要下载整个文件

join - 在 Apache Flink 中合并两个流,无论窗口时间如何

facebook - 按距离排序 Facebook Places 结果

c++ - 在 C++ 中使用循环遍历数组,程序显示 "exit status -1"?

android - 如何知道用户何时打开/关闭移动数据或 WiFi?