开发者

How to get the name of a Facebook friend?

I'm just playing around with the Facebook API in C# (Windows Form App), and I'm struggling to figure out how to get the name of a selected friend. I already have the uid for that friend using the fol开发者_开发技巧lowing code:

IList<long> myFreinds = fs.Friends.Get();
for (int i = 0; i < myFreinds.Count; i++)
{
   string friendName = ""; //this is where I want to get the name.
}

Could someone point me in the right direction? I've been looking on the net and through the documentation and still can't do this..

Thanks


I think this might help you : http://wiki.developers.facebook.com/index.php/User:C_Sharp

and also by your example it should be (i'm guessing) smth like that.

fs.Friends[i].Name
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜