Archive for the ‘Facebook’ Category

How to create a simple Facebook desktop application with C#

Hey there, while surfing the web I found that there are not too much tutorials about how to create a desktop application for facebook.

Here I will show you a really basic tutorial to create a facebook application for your desktop that will update your status.

I’m assuming that you already know the basics about facebook Web Services, if you don’t, go to


Visual Studio 2008 Express

Facebook Developer Toolkit

1. Add Facebook Components to Visual Studio

Once you have installed the Visual Studio 2008, add the facebook components to the Visual Studio Toolbox.

Right click on the toolbox area and select “Choose Items…”


Now click on the “Browse…”  Button, locate the folder where the facebook components are and add the following libraries:



facebook.web.dll <— Add this if you want to create Web Projects


Then simply click the “OK” button and you are done.

You can add these components to a new tab named “Facebook” or something if you don’t want to have them on the “General” tab.

2. Create a new project for the application.

Go to File > New Project > Windows Forms Application.


Drag the “FacebookService” component to your application Form and add the API Key and the Secret Key that facebook has already assign to your application.


Now add a Button to Log In, a TextBox to Write your status and another Button to Share your status.


Double Click on the “Login” Button to write the code that it will execute. Add the following lines:


facebookService1.GetExtendedPermission(facebook.Types.Enums.  Extended_Permissions.status_update);
catch (Exception exception)
MessageBox.Show(this, exception.Message, “Error”);

The previous lines will connect you to facebook and ask for the necessary permissions that the application needs to run.

Now lets tell the “Share” Button to do something. Double click on it and add the following lines to the code:

String status = updateText.Text;
Boolean updated = facebookService1.API.users.setStatus(status);
if (updated)
updateText.Text = “”;

These previous lines will update your status on facebook and will clear the textbox.

Now you can run your application and update your status from the desktop.

I hope that this tutorial help. Feel free to write questions or comments if you have them.

WebLab | Salvador Fuentes


How can I merge C# with popular social Web Services?

Nowadays we can create distributed systems using Web Services. A Web Service is an applicative logic unit that we can access using internet standard protocols. With these services we can create applications that are able to connect with servers in the web and allowing us to obtain information from them.

C# uses SOAP (Simple Object Access Protocol) as a communication protocol for interacting with different servers through Web Services.

Social Networks like Twitter or Facebook offer Web Services with methods that allow us interact with the information we got from them, these methods are included in the Application Programming interface (API) of each Social Network. To be able to communicate with these API’s we need to download and install the necessary libraries, this way C# will communicate transparently with these Web Services.

WebLab | Salvador Fuentes

To be or not to be …

Seriously, how could anyone live with him/herself if he/she does not knows the answers to the following fundamental life questions:

  • Is there any room left for Yet Another Twitter Applicattion (YATA) ?
  • Have to work remotely? I present you my friends Yuuguu + dropbox + Skype.
  • How can I get the most functionality of a book-shaped interface?
  • How can I merge C# with popular social Web Services? ( dammit, this question still wakes me up at night with terror)
  • Hey, I want to pod (shorten) my urls using C#, can I ?

Well mate, fret not, all of these questions will be answered here, shortly, and we assure you, you will be able to sleep easy again 🙂


Tweetbook Project

The current project we’re working on is code-named “Tweetbook”. It’s main objective is to create a .NET C# based desktop client that can handle  a user’s both Twitter and Facebook status.

The project objectives are

  • To  create one app that manages two popular Web Services.
  • Ability to handle multiple Twitter accounts per user.
  • Made using C# , based on Microsoft’s .NET framework.
  • Be a research project and generate knowledge about how to work with these services using MSFT technologies.
  • Create a lightweight, usable application.
  • Create an innovative GUI (Graphical User Interface) that forests a unique and efficient User Experience.
  • The application will contain a custom set of features based on the  most popular ones from current Twitter and Facebook applications, plus a couple of surprises 😉

Why are we doing this?

  • Create a unique software offering that meets the needs of most Twitter and Facebook users.
  • Learn about MSFT technologies and Web Services.
  • Have fun 😉


Say Hello and welcome…

Hi everyone, and welcome to this project site. We hope you enjoy the adventure from here like we do. We are working very hard in our fist project, the facebook+ twitter desktop application and we let you know from here about us and our development.

Stay close…