Not Getting uid

Apr 1, 2009 at 11:08 AM
Hi All,

I have worked on facebook api, some 18 months back, but now everything has been changed tremendously.
I was trying to get the userid but unfortunately I am not getting it, following is my scenario..

I have created master page inherited from CanvasFBMLMasterPage provide in toolkit 2.0.
Next I created a default page and there I need uid for certain purpose, but its returning 0 value always.

Can anyone guide in this regards

Thanks in advance.

Kutub Shaikh
Apr 6, 2009 at 4:06 PM
Did you checked the facebook namespace? (facebook.dll)
Apr 15, 2009 at 9:15 AM
I had this problem, and fixed it with this in the MasterPage...

    public MasterPage()
        : base()
        RequireLogin = true;

I used a constructor. It can probably done from any early event (eg. OnPreInit), but it must be done before Page_Load.

See also my complete "Hello, World" with CanvasFBMLMasterPage,