2011-02-14 71 views

回答

2

可以调用REST API notifications.getList - https://developers.facebook.com/docs/reference/rest/notifications.getList/

你不需要超出了基本的任何权限。

这将返回包含object_id和object_type的数据。

如果object_type为“stream”,则可以使用notifications.getList查询中的post_id字段设置为object_id来查询流表。您可以从流表中获取评论。 notifications.getList响应

示例代码片段:

<notifications list="true"> 
    <notification> 
    . 
    . 
    <object_id>12345678_1001251985851</object_id> 
    <object_type>stream</object_type> 
    <icon_url>http://static.ak.fbcdn.net/rsrc.php/v1/yr/r/B4fl7q9VLz5.gif</icon_url> 
</notification> 

您的后续查询:

SELECT comments FROM stream WHERE post_id='12345678_1001251985851' 
+0

看起来不错 - 不再需要它虽然。感谢你的回答! – 2011-07-29 15:36:18

相关问题