Facebook应用程序(计数朋友注册) [英] Facebook application ( count friends registered )

查看:107
本文介绍了Facebook应用程序(计数朋友注册)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用JS SDK进行Facebook,有没有办法计算也正在使用我的应用程序的朋友(当前登录用户)的数量?我在网上发现这个查询

  SELECT uid FROM user 
WHERE user.uid IN(SELECT uid2 FROM friend WHERE uid1 = ?)
AND is_app_user = 1

但我不明白,我不知道该用什么代替'?'



提前感谢!

解决方案

它检索由指定的用户的朋友的 uid ,这也是您的



所以,而不是只是把当前用户的id。



有关以下详细信息:用户朋友 fql表


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屋!

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