How to get a list of friends who play in my game or who install my game?

This code is not working:

string fql = "/fql?q=SELECT uid, name, is_app_user, pic_square FROM user WHERE uid IN "+
                    "(SELECT uid2 FROM friend WHERE uid1 = me()) AND is_app_user = 1";

FB.API(fql, Facebook.HttpMethod.GET, GetListOfPlayer);
有帮助吗?

解决方案

You're query is absolutely correct. I'm not sure but the problem could be that you have not urlencoded the fql query.

You can try this-

string query = WWW.EscapeURL("SELECT uid, name, is_app_user, pic_square FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND is_app_user = 1");
string fql = "/fql?q="+query;
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top