facebook fql 查询检索朋友发布的项目

发布于 2024-09-26 05:06:24 字数 256 浏览 4 评论 0原文

Facebook 是否允许使用任何 fql 语句来帮助通过应用程序接口获取此页面的内容: http:// www.facebook.com/posted.php 我知道链接表返回登录用户的发布项目(http://developers.facebook.com/docs/reference/fql/links)。我需要相同的但对于登录用户的朋友。

谢谢。

Is there any fql statements allowed by facebook that helps to fetch contents of this page through an application interface: http://www.facebook.com/posted.php I know the links table returns the posted item for a logged in user (http://developers.facebook.com/docs/reference/fql/links). I need the same but for the logged-in user's friends.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

西瓜 2024-10-03 05:06:24

您可以使用 Fql 查询或 Graph API 来获取您的好友数据。
有时您无法从图表中获取所有信息,例如朋友的生日,但是您可以使用 fql 查询来解决您的问题。

这是给你的一个例子。

创建第一个 facbook 对象并使用它。

$query = "从用户 WHERE uid IN 中选择 uid、名字、姓氏、生日日期、性别、pic_square、当前位置、家乡位置 (从朋友中选择 uid2 WHERE uid1 = me()) AND 生日日期 != 0 ORDER BYbirthday_date";

问候,
建筑师。

you can use Fql query or Graph API to get your friends data.
Sometimes you will not get all information from the graph like birthdate of your friends but yes you can use fql queries to solve your probs.

here is an exmple for you.

create first facbook object and the use it.

$query = "SELECT uid, first_name, last_name, birthday_date, sex, pic_square, current_location, hometown_location FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND birthday_date != 0 ORDER BY birthday_date";

Regards,
Archit.

无需解释 2024-10-03 05:06:24

您可以通过 FQL 查询来完成此操作 - 但如果您需要有关发布链接的朋友的更多信息,您可能需要使用多个查询:

select title, owner from link where owner in (select uid2 from friend where uid1 = me() limit 100)

您可能希望限制朋友的数量(甚至链接本身),因为这可能是昂贵的查询

You can do this through an FQL query - though you may need to use multiple queries if you require more information about the friend who posted the link:

select title, owner from link where owner in (select uid2 from friend where uid1 = me() limit 100)

You may want to limit the number of friends (or even the links themselves) as this can be a costly query

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文