Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4076028
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:22:23+00:00 2026-05-20T17:22:23+00:00

I am developing an Iframe-Canvas Application. I am using Master Page to gain permission

  • 0

I am developing an Iframe-Canvas Application.

I am using Master Page to gain permission access & display few details, that works good.

Then on content Page I want to display a textbox & linkbutton so user can post status on their wall & here I get error

(OAuthException) An active access token must be used to query information about the current user.

here’s my code :

Site.master.cs

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;
}

Default.aspx.cs

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);
}

I am pretty new to FacebookSDK so any help will be really appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T17:22:24+00:00Added an answer on May 20, 2026 at 5:22 pm

    Wel finally found what was the problem. Needed to add a hidden field.

    <input type="hidden" name="signed_request" value="<%: Request.Params["signed_request"]%>"/>
    

    I think this is neither mentioned any where in the documentation nor in the Provided Samples.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a web page that needs to display, in an iframe, a
I'm developing an IFrame application in Facebook (using pyfacebook and Django) and could not
I'm developing a new Facebook Canvas application within an iFrame and trying to authorize
I am developing a Facebook Iframe application using PHP which opens an RSS feed
i am developing an application which can play youtube video in webview using iframe.
I am currently developing a facebook canvas (iframe) based application. Is there any way
hi i am developing a facebook application using iframe.Invite friends is working fine now
I'm developing a facebook iframe app (page app), which counts the user's friends that
I am developing an application with sdk 3.1 - html/javascript/scenes. i have an iframe
Iam developing one application.In that iam placing the radio buttons(uiimageview) on table view and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.