MVC Sample not working?

Aug 22, 2010 at 5:15 AM


I just implemented this example but it doesn't seem to work...

I get userid = 0 all the time.

any ideas?

Oct 26, 2010 at 10:23 PM

yes, i have the same problem!

api.Session.UserId return always 0

Nov 19, 2010 at 10:07 PM

If you add the decoration:

[FacebookAuthorization(IsFbml = true)]
to the index method your app should ask for permission.  Once it's granted it will pull your userID correctly.