Home > Uncategorized > Facebook App development

Facebook App development

Freebie SMS Facebook App

Download link: Download Facebook App with source code in C#
Facebook link: Free SMS Facebook App

This is a Facebook App for sending free SMS messages to UK mobile phones,
It was created with the asp.net starter kit for C# 3.5. and can be downloaded from the links above
with full source code.

The only real departure from a standard asp.net page, is that it gets the ‘from name’ from the Facebook profile, like this:
      
       protected string GetUserName()
        {
            try
            {
                facebook.Schema.user userinfo = Master.API.users.getInfo(Master.API.uid);
                return userinfo.first_name;
            }
            catch
            {
                return "Someone";
            }
        }

Note, that the exception can be thrown on first load, before the user has accepted access to their own profile, hense
the try/catch

Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: