hello coders,
Hit a weird discrepancy in FQL (Facebook query language). The facebook developer's site is really unorganized and I'm having trouble finding an answer. The sample code for the Facebook SDK demonstrates FQL with this code:
var query = string.Format("SELECT uid,name,pic_square FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1={0}) ORDER BY name ASC", "me()");
FacebookClient fb = new FacebookClient (userToken);
fb.GetTaskAsync ("fql", new { q = query }).ContinueWith (t => {
if (!t.IsFaulted) {
var result = (IDictionary<string, object>)t.Result;
var data = (IList<object>)result["data"];
var count = data.Count;
var message = string.Format ("You have {0} friends", count);
This pops up a little alert that shows how many friends the current user has. Simple and easy right?
Well, I changed the query to look something like this-
var query = string.Format("SELECT flid, name, type FROM friendlist WHERE owner={0} ORDER BY name ASC", "me()");
And even though the return data appears to be in the same format, The count returns zero every time. Im stumped.
This step is only being used for debugging purposes. Eventually I plan on filling a spinner with the user's friend lists. Can do that until I figure out how to extract this data. Any help would be hot. Thanks.