Facebook图形api:/不同朋友的链接 [英] facebook graph api: /links for different friend

查看:87
本文介绍了Facebook图形api:/不同朋友的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试获取某些朋友的所有链接时,我得到的数据为空.我有一个完整的访问令牌,也许此限制是由于朋友的许可引起的?有一些解决方法?谢谢

when I try to get all the links for some of my friend I get an empty data result. I have a full access token, maybe this limitation is due from the friend's permissions? There is some workaround? Thanks

推荐答案

当我尝试获取某些朋友的所有链接时,我得到的数据为空.我有一个完整的访问令牌,也许此限制是由于朋友的许可引起的?

when I try to get all the links for some of my friend I get an empty data result. I have a full access token, maybe this limitation is due from the friend's permissions?

您将需要朋友的 read_stream 权限-朋友必须将其授予您自己,这意味着他必须是您应用程序的用户,并且必须自己授予该权限.并且您需要将某个朋友的活动用户访问令牌存储在某个位置.

You would need read_stream permission from the friend – and the friend would have to give it to you yourself, meaning he would have to be a user of your app and must have granted that permission themselves. And you would need to have an active user access token of the friend stored somewhere.

有一些解决方法吗?

There is some workaround?

如果您对获得当前用户可以看到的朋友的所有链接感到满意,则可以过滤

If you would be satisfied with getting all the links of a friend your current user is allowed to see, then you could filter the FQL stream table with your user’s id (or me()) as source_id, your friend’s id as actor_id and type=80 (for type Link posted).

(而且,您还可以使用 actor_id 的friends表上的子查询",一口气对所有个朋友的链接进行此操作.)

(And with that, you could also do it for all friend’s links in one go, using a "sub-query" on the friends table for the actor_id.)

这篇关于Facebook图形api:/不同朋友的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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