views:

102

answers:

1

I made really basic facebook application, which collect permission from user to post data. Some time ago (around New year) it worked fine. I am using http://facebooktoolkit.codeplex.com, and my code looks like this:

public partial class Facebook : CanvasFBMLBasePage
{
protected void Page_Load(object sender, EventArgs e)
{
if (this.Api.Users.HasAppPermission(global::Facebook.Schema.Enums.ExtendedPermissions.publish_stream))

And at this moment I am having exception: parameter uid or session key required

As i understand, I should have some session defined by Facebook and CanvasFBMLBasePage should parse it, and make it possible to use application, but this is not happening.

My application settings (maybe I mis something):

Thanks for help

+1  A: 

Have you called the "ConnectToFacebook" method in the api before calling "HasAppPermission"?

Alexander
No :) I just check it is not used in samples provided
Sergey Osypchuk