var fb = new FacebookClient(ACCESS_TOKEN); dynamic result = await fb.GetAsync("me"); string name = result.name; int age = result.age;
var fb = new FacebookClient(ACCESS_TOKEN); dynamic result = await fb.GetAsync("me/friends"); ListIn this example, we're again creating a new instance of FacebookClient with an access token, and using the GetAsync method to retrieve a user's friends list. We then iterate over the list and extract the name and ID of each friend. Package library: Facebook C# SDK.friends = result.data; foreach (var friend in friends) { string name = friend.name; string id = friend.id; // Do something with friend's name and id }