如何获取 Facebook 好友的姓名?
我只是在使用 C#(Windows 窗体应用程序)中的 Facebook API,并且正在努力弄清楚如何获取所选朋友的姓名。我已经使用以下代码获得了该朋友的 uid:
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.
}
有人能给我指出正确的方向吗?我一直在网上查找并通过文档,但仍然无法做到这一点..
谢谢
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 following 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这可能对您有帮助: http://wiki.developers.facebook.com /index.php/User:C_Sharp
并且根据您的示例,它应该是(我猜)这样的。
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.