How to list Facebook friends list in VB.NET?

Can someone give me a simple example of how to list Facebook friends list in VB.NET?

Also, which SDK should I install for VB.NET?

+4
source share
2 answers

If you are completely against writing C # code, you can simply compile the Facebook C # SDK into a DLL and import it into your VB project. There was no difference between them at this moment.

+4
source

The Facebook Developer Toolkit works great with VB.NET.

However, it does not support the authentication of the APIs and the GUI APIs.

You can get a list of friends with this code (I'm not sure if the formatting for the Writeln() method is correct):

 ' autheticate first For Each item As Facebook.Schema.user In api.Friends.GetUserObjects Console.Writeln("uid: {0}", item.uid) Console.Writeln("picture: {0}", item.pic_small) Console.Writeln("first name: {0}", item.first_name) Console.Writeln("last name: {0}", item.last_name) Next 
0
source

Source: https://habr.com/ru/post/1333463/


All Articles