2

如何以编程方式查找我的哪些朋友正在使用我的应用程序使用Mogli或Facebooker2。使用应用程序查找朋友

如果唯一的方法是使用FQL可以有人提供一个例子吗?

我觉得代码波纹管是能够找到

select uid, name, is_app_user from user where uid in (select uid2 from friend where uid1=me()) and is_app_user=1 
+0

这是facebook-graphy-api应该提供的。我不认为你需要自己做。 – s84

+0

你可以提供API的链接并向我们显示你存储在你的数据库中的任何信息吗? – s84

+0

但问题是图形api没有提供。 – Immo

回答

0

只是测试:

https://api.facebook.com/method/fql.query?query=select+uid%2C+name%2C+is_app_user+from+user+where+uid+in+%28select+uid2+from+friend+where+uid1%3Dme%28%29%29+and+is_app_user%3D1%0A 
&access_token=YOUR_ACCESS_TOKEN 
&format=json 

,并返回正确的结果,因此FQL实际上是工作!

相关问题