Note that there are some explanatory texts on larger screens.

plurals
  1. POIframe Canvas application with Master Page
    primarykey
    data
    text
    <p>I am developing an Iframe-Canvas Application.</p> <p>I am using Master Page to gain permission access &amp; display few details, that works good.</p> <p>Then on content Page I want to display a textbox &amp; linkbutton so user can post status on their wall &amp; here I get error</p> <p><strong>(OAuthException) An active access token must be used to query information about the current user.</strong></p> <p>here's my code :</p> <p>Site.master.cs</p> <pre><code>protected void Page_Load(object sender, EventArgs e) { var auth = new CanvasAuthorizer { Permissions = new[] { "user_about_me","user_birthday","user_location","offline_access","publish_stream" } }; if (auth.Authorize()) { ShowFacebookContent(); } } private void ShowFacebookContent() { var fb = new FacebookWebClient(); dynamic myInfo = fb.Get("me"); lblName.Text = myInfo.name; imgProfile.ImageUrl = "https://graph.facebook.com/" + myInfo.id + "/picture"; lblBirthday.Text = (myInfo.birthday == null ? string.Empty : DateTime.Parse(myInfo.birthday).ToString("dd-MMM-yy")); lblHometown.Text = (myInfo.hometown.name == null ? string.Empty : myInfo.hometown.name); lblLocation.Text = (myInfo.location.name == null ? string.Empty : myInfo.location.name); pnlHello.Visible = true; } </code></pre> <p>Default.aspx.cs</p> <pre><code>protected void Page_Load(object sender, EventArgs e) { } public void LinkButton1_Click(object sender, EventArgs e) { var fb = new FacebookClient("access_token"); //var fb = new FacebookWebClient(); dynamic feedparameters = new ExpandoObject(); feedparameters.message = (message_txt.Text == null ? " " : message_txt.Text); feedparameters.user_message_prompt = "userPrompt"; dynamic result = fb.Post("me/feed", feedparameters); } </code></pre> <p>I am pretty new to FacebookSDK so any help will be really appreciated.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload