2012-04-01 241 views
2

任何人都可以告诉我状态表和流表之间有什么不同吗?Facebook FQL:状态表和流表之间的区别?

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

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

我正在尝试查找所有可公开显示的帖子的列表,而且似乎要执行此操作,因此我需要查询两个表并最终生成一些重复项。有没有更好的办法?

下面是一个例子:

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 FUCKING 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 
    } 
    ] 
} 

回答

2

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

状态表只包含状态更新 - 没有其他链接的文字,照片等

如果你希望找到类似时间表的内容,你将要使用的流表。

+0

嗨汤姆。问题是,如果我查询流表,我没有得到时间轴上的所有结果。帖子表中有项目没有出现在流表中,但在我的时间轴上。这是正常的吗? – Burnsie 2012-04-02 15:10:12

+0

嗯。你错过了什么样的故事?定期,简单,共享的帖子?还是更复杂的故事? [此迁移](https://developers.facebook.com/blog/post/592/)可能是相关的。 – 2012-04-03 02:50:24

+0

这只是一个普通的职位。请参阅上面的编辑了解更多信息 – Burnsie 2012-04-11 20:19:57

相关问题