本文介绍了Facebook FQL评论用户名=匿名用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
查询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?
感谢
推荐答案
我真的不明白这个用户名
是什么代表,但你可以简单地忽略它!
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评论用户名=匿名用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!