过滤从 Facebook 获取的个人资料提要
我正在尝试从用户的 Facebook 获取个人资料提要。为此,我使用图形 api 并调用 feed api 来获取数据。但我只想要他朋友发布的那些东西。不过,我还收到了他的照片帖子(例如个人资料页面顶部的连续 5 张照片),我们可以在新的 Facebook 布局中看到这些照片。如何在调用 feed api 时对其进行过滤,以便仅获取其他人的帖子?
I am trying to fetch the profile feed from a user's facebook. For this I am using the graph api and calling the feed api to fetch the data. But I want only those things posted by his friends. However, I am getting also the posts of his pictures(like the 5 pictures in a row at the top of the profile page) which we can see in the new facebook layout. How can I filter this while calling the feed api so that only the posts by others can be fetched?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是 facebook 返回的示例:
您需要 from 属性。该 id 是在墙上发帖的人的 id。如果它与您正在查询的用户 ID 相同,您可以对其进行过滤。希望这有帮助。
This is a sample of what facebook returns:
You need the from attribute. That id is the id of the person who posted on the wall. If it's the same with the user id you are querying you can filter it. Hope this helps.