家庭供稿获取特定链接 [英] Home feed get specific links
问题描述
所以我想从用户首页流中获得链接式的帖子 但我希望它具有特定的网址,例如"where link url = example.com"
So I want to get linked typed post from users home stream But I want it to have specific url like "where link url = example.com"
因此,我将获得共享该链接的朋友的数据.
As a result I will have a data of my friends who had shared that link.
首先我尝试用
https://graph.facebook.com/me/home?q=example (有效但部分仅适用于旧帖子)
https://graph.facebook.com/me/home?q=example (worked but partly, only old posts)
然后我做了:
friends_id = [Get all ids]
[foreach friends_id as id]
make facebook api call to that id
get all links that user had shared
[foreach links as link]
filter all of them for a specific link
[if shared the link] save user to an array
那真的很慢!一个人6秒钟
And that was really slow! 6 sec for a person
最后我尝试用 fql使用流和流过滤器.我可以获取帖子但无法查询该链接是什么问题
And lastly I tried to get it with fql using stream and stream filter. The problem with that I can get posts but I can't query what is that link
打印数组给我:
[post_id] => **********
[actor_id] => *******
[target_id] =>
[message] =>
[action_links] =>
[type] => 80
那么我该如何实现共享共享该链接的朋友的一系列数据的目标?
So how can I achieve my goal of having an array of data of my friends who had shared that link?
推荐答案
抱歉,只能通过使用 friends_id = [获取所有ID] [foreach friends_id as id]
Sorry, only possible by using friends_id = [Get all ids] [foreach friends_id as id]
make facebook api call to that id
get all links that user had shared
[foreach links as link]
filter all of them for a specific link
[if shared the link] save user to an array
这篇关于家庭供稿获取特定链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!