Facebook FQL评论用户名=匿名用户 [英] Facebook FQL comment username = anonymous user
问题描述
查询FQL注释表时,如下所示:
When quering the FQL comment table like this:
SELECT post_fbid, fromid, username, time, text FROM comment WHERE post_id = id
我得到的结果,但每个评论的用户名是匿名用户。有人知道为什么这是发生和有解决方案也许?
I am getting the results but username for every comment is "Anonymous User". Does anyone know why this is happening and has a solution maybe?
感谢
推荐答案
username 用户在发布评论时输入的用户名。
在这些情况下,返回的fromid将为0.请注意,有效用户的用户名
不会返回此处。
username The user name that a user entered when they posted a comment. In these cases, the fromid returned will be 0. Note that user names for valid users are not returned here.
我真的不明白这个用户名
是什么代表,但你可以简单地忽略它!
I honestly don't understand what this username
exactly represents but you can simply ignore it!
fromid
提供评论者的ID。因此,您无需获取用户名!
The fromid
gives the ID of the commenter. From that, there is no problem for you to get the user name!
ID
可以是一个的用户或页面。我为你收集了你需要的所有信息的多重查询:
The ID
can either be the one of a user or a page. I made a multiquery for you that gathers all the information you need:
{
"comments": "SELECT post_fbid, fromid, time, text FROM comment WHERE post_id=\"205861559433343_336511733034991\"",
"users": "SELECT uid, username FROM user WHERE uid IN (SELECT fromid FROM #comments)",
"pages": "SELECT page_id, name FROM page WHERE page_id IN (SELECT fromid FROM #comments)"
}
这篇关于Facebook FQL评论用户名=匿名用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!