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 3429208
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:03:13+00:00 2026-05-18T07:03:13+00:00

The question says it all: How can I get an access token to use

  • 0

The question says it all:

How can I get an access token to use on graph api calls from a asp.net webforms 4.0 iframe canvas app.

My canvas application has been configured to enable the OAuth 2.0 for Canvas (beta) among other things.

alt text

This means I am getting the signed_request parameter on my iframe which I am successfully reading.

From the oficial documentation on canvas authentication

The signed_request parameter is the concatenation of a HMAC SHA-256 signature string, a period (.), and a base64url encoded JSON object.

There is a php code in the documentation which decodes the signed_request but I haven’t been able to implement it propertly in C# partly beacuse to be honest I prefer not to reinvet the wheel but to use someone else code that has been already tested.

This is where my quest for a good C# Facebook SDK started again (since facebook changes everything every few months librarys get usually obsolete).

I have used the codeplex’s Facebook Developer Toolkit in the past but it seems to be getting outdated ans the lastest stable release is very old (in facebook API time)

Some months ago used the Oficial Facebook C# SDK from GitHub but it lacks completly the authentication support.

Now I have found on Nuget and really liked the Facebook C# SDK from Nathan Totten who is one of the top Facebook Experts here in StackOverflow.

If you Nathan read this (or anyone that also uses this sdk), how can I use this SDK to get an access token to use in my canvas app.

Anyway if there is a better way to get a token, maybe with the Javascript library please let me ( and the people who wonder the same as me ) know.

  • 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-18T07:03:13+00:00Added an answer on May 18, 2026 at 7:03 am

    Hey, Carlos. So to get the access token, you just need to do the following after the user has authenticated:

    FacebookApp app = new FacebookApp();
    var accessToken = app.Session.AccessToken;
    

    Also, see my answer to this question: facebook-C#-sdk MVC "Hello World" app – how to get access token?

    Hopefully that helps, otherwise let me know if you have any other questions.

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

Sidebar

Related Questions

The question says it all. I can't seem to find any recent rails tutorials
The question says it all! I am looking for an easy to use alternative
Question says it all. I have a data structure I can't Marshal because of
Question says it all, really. My application is a time tracker. It's currently written
Question says it all, I've got a 500,000 line file that gets generated as
The question says it all basically. I want in a class MyClass to listen
I think the question says it all. I'm new to Eclipse plugin development, so
I think the question says it all. I have several monthly processes in stored
Question title says it all really - a lot slower than VS2005, with a
The question really says it all. For one project I am working on, the

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.