GetCurrentUser?

Jun 24, 2010 at 6:46 PM

Hello all,

I'm new to Facebook/Silverlight development and I'm running into a problem understanding exactly what facebook.users.getLoggedInUser does.

This seems to get the ID of the logged in user.  I'd like to get the user first/last name.  How do I do this?

Thank you. :)

Michael

Jun 24, 2010 at 7:45 PM

using facebook;
using facebook.web;   

protected void Page_PreInit(object sender, EventArgs e)    
    {
            this.RequireLogin = true;
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        facebook.Schema.user u = this.API.users.getInfo();
        lblMessage.Text = "Hi " + u.first_name + "!;
    }