UPDATED Nov. 6, 2008: A new release is available here.
I’ve updated my Facebook Starter Kit to version 1.3 of the Facebook Developer Toolkit published by Microsoft available on CodePlex. I also cleaned up the code and moved the Appkey and Secret so their read from web.config.
Btw, I’ve had a few questions in email about how to fetch a friend list which can be done as follows:
if (!IsPostBack)
{
System.Collections.ObjectModel.Collection<User> userinfo = _fbService.GetUserInfo(_fbService.UserId); Label1.Text = "Hi, " + userinfo[0].FirstName;
Image1.ImageUrl = userinfo[0].PictureUrl.ToString();
// Use the FacebookService Component to populate Friends System.Collections.ObjectModel.Collection<User> Friends =
_fbService.GetFriends();
for (int i = 0; i < Friends.Count; i++)
DropDownList1.Items.Add(Friends[i].FirstName.ToString());
}
If you haven’t seen it I’ve also created a starter kit for Nikil Kothari‘s Facebook.NET framework so be sure to take a look a that as well.
Enjoy!