Facebook应用程序(计数朋友注册) [英] Facebook application ( count friends registered )
本文介绍了Facebook应用程序(计数朋友注册)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
SELECT uid FROM user
WHERE user.uid IN(SELECT uid2 FROM friend WHERE uid1 = ?)
AND is_app_user = 1
但我不明白,我不知道该用什么代替'?'
提前感谢!
解决方案
它检索由?
指定的用户的朋友的 uid
,这也是您的
所以,而不是?
只是把当前用户的id。
Using JS SDK for facebook, is there a way to count number of friends (of currently logged in user) that are also using my application ?? I found this query online
SELECT uid FROM user
WHERE user.uid IN (SELECT uid2 FROM friend WHERE uid1 = ?)
AND is_app_user = 1
But I don't understand it, and I don't know what to put instead of '?'
Thanks in advance!
解决方案
It retrieves uid
of friends of the user, specified by ?
, that are also users of your application.
So instead of ?
just put the current user's id.
Detailed information about: user and friend fql tables
这篇关于Facebook应用程序(计数朋友注册)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文