No UserId in FacebookService

Jul 30, 2009 at 4:57 AM


I just started to make a Facebook Web application. I downloaded the toolkit v2.1 to develop in Visual Studio using in c#.

I took the sample code from the documentation, where those lines are:

if (!String.IsNullOrEmpty(sessionKey))
                _fbService.SessionKey = sessionKey;
                _fbService.UserId = userId;

The problem is that Visual Studio tells me that there is no definition for UserId in FacebookService, and I went there and actually there is NO definition, so how is it possible? I took everything from the toolkit 2.1, so It should work right?

Jul 30, 2009 at 5:15 PM
Edited Jul 30, 2009 at 5:16 PM

Just use this -

base.API.uid or _fbService.API.uid