Facebook web app session information missing

I made a really basic facebook app that collects permission from the user to post data. Some time ago (around New Years) everything 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 the moment I have an exception: uid parameter or session key is required

As I understand it, I must have some sort of session defined by Facebook and CanvasFBMLBasePage must parse it and use it, but it doesn't.

My application settings (maybe I am something wrong):

thanks for the help

+2


source to share


1 answer


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



+1


source







All Articles