Simple code to get the hands wet with Linq to FQL

Mar 24, 2015 at 7:05 PM
Edited Mar 24, 2015 at 7:06 PM

I downloaded the library

I added a reference to my library and compliled the solution. I compiles well withou any problems, however when I tried to test some queries including the one mensioned in the above codeproject site
var db = new FacebookDataContext();
var friendIDs = from friend in db.friend_info where friend.uid1 ==
                db.uid select friend.uid2;
var friendDetails = from user in db.user where friendIDs.Contains(user.uid)
        select new { Name =, Picture = user.pic_small };
It doesn't return anything friendDetails is empty I think something is missing in the puzzle in fact what I really need is to perform a simple request to discover let's say this request mensioned in that graph I need to select friend1, freind2 friend3 friend4 just for the sake of undertanding how to deal with linq to fql because I didn't know from wehere to start and the article is not exaplaining well the use of it
Here is the graph that holds the friends

Thank you