tags:

views:

810

answers:

2

How to make further progress from here? What would be next step to get friends list?

       string APIKey = ConfigurationManager.AppSettings["API_Key"];
        string APISecret = ConfigurationManager.AppSettings["API_Secret"];

        Facebook.Session.ConnectSession connectsession = new Facebook.Session.ConnectSession(APIKey, APISecret);
        Facebook.Rest.Api api = new Facebook.Rest.Api(connectsession);
+1  A: 

You might want to take a look at the application: Fishbowl It is a WPF Reference app for Facebook that has full source code. It may help you with many facebook items.

Joshua Cauble
I just downloaded the source code. Its huge. I dont know where to start.
dotnet-practitioner
I'm not all that familiar with the code either but the Contigo project is the Key. It has a facebookservice and a facebookwebapi class that seem to be the main entry points into the facebook service. I will admit I have not used this but I know it pulls the data you are asking for. Just a matter of disecting it. facebookwebapi I believe is the one you might want to focus on though.
Joshua Cauble
+6  A: 

You're really close. All that is left to do is call the GetLists method in the Friends namespace.

var friends = api.Friends.GetLists();
foreach (var friend in friends)
{
    System.Console.WriteLine(friend.name);
}

Here's the link to the REST api docs. It should help you find other functions. Another way is to just use visual studios IntelliSense. Type api. and visual studios should give you a list you can navigate through.

gradbot