MVC Sample not working?

Aug 22, 2010 at 4:15 AM

Hi,

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

http://blogs.claritycon.com/blogs/kevin_marshall/archive/2009/10/06/facebook-developer-toolkit-3-0-asp-net-mvc-sample.aspx

I get userid = 0 all the time.

any ideas?

Oct 26, 2010 at 9:23 PM

yes, i have the same problem!

api.Session.UserId return always 0

Nov 19, 2010 at 9: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.