简体   繁体   中英

c# display list of “friends” in facebook

桌面应用程序登录到Facebook(使用用户可靠输入的用户)并列出所有ID为ID的朋友的最佳方法是什么?

Take a look at the API that facebook provides

you would first need to authenticate http://developers.facebook.com/docs/authentication/desktop

and then you would need to look at the Graph API

to look up the friends (FriendList)

I would recommend using the Facebook C# SDK . If you download the current release you will find a sample that will show you how to do what you are asking. However, one thing to note is that you cannot collect the user's username and password directly. You must use OAuth in order to authenticate the user. This is all show in the WinForms sample.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM