If you are developing a Winform application you should add the FacebookService component to your toolbox in Visual Studio. To do this, right-click in the area of the toolbox where you want the controls to go, and select “Choose Items” from the pop-up menu.
In the window that appears, click the “Browse…” button, locate Facebook.Winforms.dll, and open it. Click “OK”, and the FacebookService component and the various user controls should appear in your toolbox.
.jpg)
To start utilizing the Facebook API, you will need to add the FacebookService component to your project. To do this just drag an instance of FacebookService from the toolbox onto the component tray and enter your API.
.png)
The FacebookService component contains methods that wrap all of the methods of the Facebook API. The following provides an example for getting all the friends of the logged in user. This method returns a generic collection of user objects. The user object is a strongly typed representation of a Facebook User profile.