本文介绍了Facebook FQL。在日期/时间排序的单个查询中,最简单的方法是获取所有页面更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要监控一个单一页面和所有相关的活动。这是我要完成的结果:

  29/10  - 用户:John  -  Action:Like  - 对象类型: status  -  Object id:123456 
29/10 - User:Mary - Action:Comment - Object type:status - Object id:123343
29/10 - User:Etan - Action:Tagged - Object type: status - Object id:123537
29/10 - 用户:Arth - Action:Like - 对象类型:status - Object id:123876
29/10 - 用户:Jack - Action:Post - Object type:状态 - 对象ID:123423
29/10 - 用户:杰克 - 动作:照片 - 对象类型:照片 - 对象ID:123423

您可以按术语搜索,例如按预期提供所有内容。我们在指定的日期/时间之后,一个单一的呼叫评论,帖子,状态和照片:





由于没有办法像 / search?q = 那样简单,我该怎么用FQL?



我应该使用表吗?在这种情况下,应该申请哪个过滤器 stream_table



有没有办法做到这一点,我必须在分离的查询中得到所有的东西吗?



(如果有帮助:我正在使用Facebook PHP SDK)

解决方案

我们也使用这种技术,但仍然有一个问题。如果您指定了一个 ORDER BY updated_time DESC ,流表可返回Feed的热门帖子视图,而不是最近 p>

所以你可能会错过帖子,特别是粉丝的帖子。
我们还没有找到解决这个问题的方法...


I need to monitor one single page and all related activities. This is the result I'm trying to accomplish:

29/10 - User: John - Action: Like    - Object type: status - Object id: 123456
29/10 - User: Mary - Action: Comment - Object type: status - Object id: 123343
29/10 - User: Etan - Action: Tagged  - Object type: status - Object id: 123537
29/10 - User: Arth - Action: Like    - Object type: status - Object id: 123876
29/10 - User: Jack - Action: Post    - Object type: status - Object id: 123423
29/10 - User: Jack - Action: Photo   - Object type: photo - Object id: 123423

You can take as example the search by term, that provide everything as expected. We have in one single call comments, posts, statuses and photos ordered since the specified date/time:

https://graph.facebook.com/search?q=watermelon&type=post

Since there's no way to do it simple as the /search?q=, how can I do it with FQL?

Should I use the stream table? In that case, which filter of the stream_table should I apply?

Is there an easy way to do that or do I have to get every thing in separated queries?

(If it helps: I'm using Facebook PHP SDK)

解决方案

We are also using this technique but there is still an issue. The stream table returns the Top Posts view of the feed and not the Most recent one EVEN if you specify an ORDER BY updated_time DESC.

So you might miss posts, especially posts from fans.We have not found a solution to this problem...

这篇关于Facebook FQL。在日期/时间排序的单个查询中,最简单的方法是获取所有页面更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 08:59