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

  • Home
  • SEARCH
  • 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 8291841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T13:16:14+00:00 2026-06-08T13:16:14+00:00

This may seem like an obvious problem, but I have looked on the facebook

  • 0

This may seem like an obvious problem, but I have looked on the facebook developers site regarding canvas apps, and on the facebook csharp sdk and have not found an answer to my questions.

I’m using the facebook-c#-sdk v5.4x or something abouts, .net 3.5 using webforms.

The canvas app for desktop will have multiple entry points.

https://apps.facebook.com/my_canvas_app/Default.aspx
https://apps.facebook.com/my_canvas_app/Register.aspx?EventID=12345
https://apps.facebook.com/my_canvas_app/SomeOtherPage.aspx

My first question is that from the first request from facebook, I receive the signed_request (which facebook-c#-sdk takes care of), I have the oauth token, which is valid for approximately 2 hours. What is the correct way to re-new this oauth token, and ensure it’s valid before trying to make an oauth request (query the graph, etc.)?

Right now all my links (say from Default.aspx) look like <a href="https://apps.facebook.com/my_canvas_app/SomeOtherPage.aspx" target="_top">Go to Some Other Page</a>, which ends up doing a round trip to facebook, getting a new signed_request, and thus a renewed oauth token.

Secondly, When doing a regular form postback though asp.net to my own site, I ensure the signed_request is on the form with a simple <input type="hidden" name="signed_request" value="<%=Request.Form["signed_request"]%>" />, which seems to work fine for the the application. If I omit this then the postback does not have the oauth information, resulting in things failing. Is this the correct way to perform a postback in a canvas app? From what I can see from viewing the source of the csharp-sdk that nothing is stored in the session to preserve the oauth token between requests, so the hidden input, and target=”_top” links are required for multiple pages / postbacks, am I correct in this deduction?

Thirdly, when developing the mobile canvas app (without the iframe), do all the links on my page still have to go to https://apps.facebook.com/my_canvas_app/MobilePage.aspx, if my first assumption is correct that is.

If anyone could shed some light on these subjects I would be greatly appreciated.

Thanks!

  • 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-06-08T13:16:16+00:00Added an answer on June 8, 2026 at 1:16 pm

    What I am doing is using the signed_request on a per-page basis. All links in the desktop environment go to http://apps.facebook.com/myappnamespace/MyPageName.aspx with a target="_top", this way every page change gets an updated oauth token. Mobile operates differently as signed_request is not available for the mobile experience. The solution for this is to use server side authentication instead. I am not using http://apps.facebook.com/myappnamespace for the mobile environment as it’s not within an iframe. Mobile operates like any other regular website.

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

Sidebar

Related Questions

this may seem like a simple problem but I couldn't find it in the
This may seem like an obvious thing, but I can't find it. When using
This may seem like an obvious (or not so obvious) question, but let me
This may seem like a dumb question but I have IDLE and I'm trying
This may seem like a simple problem to solve, but I'm new to Android
this may seem like a stupid question but I have a query string which
I'm pretty new to MVC so this may seem like an obvious question, but
This may seem like a simple questiom, but I have the following html <div
This may seem like an obvious answer, but I can't seem to find an
This may seem like a nit-picky detail, but I am wanting to disable to

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.