开发者

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

开发者 https://www.devze.com 2023-02-14 21:52 出处:网络
With this code: string fqlQuery = string.Empty; string sUIDList = string.Empty; IDictionary<string, object> Parameters = new Dictionary<string, object>();

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

精彩评论

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

关注公众号