Facebook fql 查询获取朋友共享的链接不起作用
我试图在几天内运行此查询,它要么被挂起,要么收到错误消息“发生未知错误”
select title from link where owner in ( select uid2 from friend where uid1 = me())
基本上我试图找到我的朋友共享的所有链接 - 不是我的朋友喜欢的页面 - 我知道我可以从 page_fan 表中获取该信息
我正在此处测试查询
http: //developers.facebook.com/docs/reference/rest/fql.query/
你们的任何帮助将不胜感激 谢谢
I'm trying to run this query from couple of days and it either gets hanged or I get an error saying "An unknown error occured"
select title from link where owner in ( select uid2 from friend where uid1 = me())
Basically I am trying to find all links shared by my friends - not pages that my friends like - I know I can get that information from page_fan table
I'm testing the query here
http://developers.facebook.com/docs/reference/rest/fql.query/
Any help from you guys will be appreciated
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我可以通过在上述查询中添加 LIMIT 子句来解决此问题
select title from link whereowner in (select uid2 fromfriend where uid1 = me()) limit 100
希望它可以帮助某人! !
I was able to resolve this by adding the LIMIT clause to the above query
select title from link where owner in ( select uid2 from friend where uid1 = me()) limit 100
Hope it helps someone !!!!
您还可以尝试使用 Graph-API 的“链接”连接(记录在此处< /a>)。
Graph-API 内置了分页,所以也许它可以解决您的问题(尚未测试)
You could also try to do it with the Graph-API's "links" connection (documented here).
The Graph-API has pagination built in so maybe it solves your problem (haven't tested)