Facebook图表如何获取用户信息,用户发表关于喜好和评论的帖子? [英] Facebook graph api- how to get user feed,with out posts about likes and comment by the user?

查看:120
本文介绍了Facebook图表如何获取用户信息,用户发表关于喜好和评论的帖子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个fb应用程序,其中我想给用户一些时间线,但是我需要排除用户喜欢的照片,朋友照片中的评论等故事。我将过滤并排除这些类型的

i am developing a fb app,in which i want to give the users time line,but i need to exclude stories like "User likes a photo","coments on friends's photo".how i filter and exclude these types of stories

推荐答案

您可以过滤这些帖子通过寻找故事 story_tags 键,因为这些不在用户发布的帖子中。

You can filter these Posts by looking for the presence of the story or story_tags key as these is not present in the Posts made by the User.

文档 故事的描述


不是故意生成的故事文本用户,如两个用户成为朋友时生成的;您必须在应用程序中启用包括最近的活动故事迁移以检索这些故事

Text of stories not intentionally generated by users, such as those generated when two users become friends; you must have the "Include recent activity stories" migration enabled in your app to retrieve these stories

或者您可以尝试FQL的像这样

Or you may try FQL's stream like this

select message from stream where source_id=me() and type in (46,56,80,56,128,247)
and filter_key in (select filter_key from stream_filter where uid=me())

这可能有助于您将帖子减少到您想要的。

which might help you to reduce the Posts to one that you desire.

更新

您可能不需要使用类型字段由林果as验证,所以查询减少到

You might not require to reduce the result using type field as verified by 林果皞 , so the query reduces to

select message from stream where source_id=me() AND filter_key in
(select filter_key from stream_filter where uid=me())

这篇关于Facebook图表如何获取用户信息,用户发表关于喜好和评论的帖子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆