开发者

How to use Facebook SDK to do a FQL Query with graph API?

With this code:

string fqlQuery = string.Empty;
string sUIDList = string.Empty;

IDictionary<string, object> Parameters = new Dictionary<string, object>(); 
FacebookApp fbApp = new FacebookApp();
fqlQuery = "SELECT uid, name, pic, profile_url FROM user WHERE uid IN (" + sUIList + ")"; 

Parameters.Add("method", "fql.query");
Parameters.Add("query", fqlQuery); 
var Info = (JsonArray)f开发者_StackOverflow中文版bApp.Api(Parameters);

the method Api in the Facebook SDK uses the RestServer and not the Graph Api. How can I do a FQL Query with Graph API?


Short answer, you can't. We still need to use fql.query to perform FQL actions.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜