检索friend_request FQL表发送好友请求列表 [英] Retrieve list of sent friend requests from friend_request FQL table

查看:213
本文介绍了检索friend_request FQL表发送好友请求列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要显示我已发送给好友请求列表。我试着使用FQL:

I need to display a list of friend request that I have sent to. I tried using FQL:

选择时间,消息从friend_request WHERE uid_from =我()

SELECT time, message FROM friend_request WHERE uid_from = me()

然而,这送花儿给人返回一条错误消息:

However, this alway returns an error message:

该uid_from场不被索引

The uid_from field is not indexed

有没有办法实现这一目标?

Is there any way to achieve this?

推荐答案

这是不可能的 - 的的为friend_request FQL表文件清楚地表明,在表中唯一的可转位字段是 uid_to

This is not possible - the Documentation for the friend_request FQL table clearly shows that the only indexable field in the table is uid_to

您可以阅读发送到当前用户的好友请求列表,或检查前提是你知道哪些用户被发送到由当前用户发送的好友请求的状态。

You can read a list of friend requests sent to the current user, or check the status of any friend request sent by the current user provided that you know which user it was sent to.

选择时间,消息从friend_request WHERE uid_to =我()

SELECT time, message FROM friend_request WHERE uid_to = me()

选择时间,消息从friend_request WHERE uid_from =我()和uid_to = [USER ID]

SELECT time, message FROM friend_request WHERE uid_from = me() and uid_to = [USER ID HERE]

您不能检索当前用户发送的所有好友​​请求。

You cannot retrieve all friend requests sent by the current user.

这篇关于检索friend_request FQL表发送好友请求列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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