2009-11-21 116 views
0

我只是玩弄C#(Windows Form App)中的Facebook API,而我正在努力弄清楚如何获取选定朋友的名字。我已经有该使用以下代码的朋友的uid:如何获取Facebook朋友的名字?

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. 
} 

有人能指出我在正确的方向吗?我一直在寻找在网上和通过的文件,但还是无法做到这一点..

感谢

回答

0

我想这可能会帮助您:http://wiki.developers.facebook.com/index.php/User:C_Sharp

,并通过你的榜样应该是(我猜)像这样。

fs.Friends[i].Name 
+0

恶魔...嘿嘿:P – Svish 2009-11-23 07:50:45

+0

:d遗憾,太多的魔兽,我的错误,我会解决这个问题的时候了。 – 2009-11-23 11:00:36