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

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

问题描述

我需要显示已发送的好友请求列表.我尝试使用 FQL:

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

SELECT time, message FROMfriend_request WHERE uid_from = me()

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.

SELECT time, message FROMfriend_request WHERE uid_to = me()

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

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

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天全站免登陆