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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:18:36+00:00 2026-05-31T00:18:36+00:00

I am pretty new to the Facebook API and am using the Javascript SDK

  • 0

I am pretty new to the Facebook API and am using the Javascript SDK to do most of my work. I am logging in with:

FB.getLoginStatus(function (response) {
    if (response.status === 'connected') {
        document.location.href = '<%: ResolveUrl("~/Account") %>/AuthenticateFacebook?accessToken=' + encodeURI(response.authResponse.accessToken) + '&userID=' + encodeURI(response.authResponse.userID) + '&returnUrl=' + $('#returnUrl').val();
    }
}

This is sending the result of the login response to my authenticate page. This is working fine. Later on when I want to use the accessToken on the server is where I am stuck.

I am also trying to use the Facebook C# SDK to do basic stuff. That requires the accessToken so my question is how can I access the from servers side, or do I store that somewhere?

The site is MVC3 with a basic ASP.NET membership service underneath. Any help or guidance on this is 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-31T00:18:37+00:00Added an answer on May 31, 2026 at 12:18 am

    What you have so far is excellent. It is the way that the C# SDK developers want you to do it.

    To store it server-side, you can place that into session. Bear in mind that the access token is only good for an hour or so. So occasionally you will want to grab a new token client-side to refresh the one on your server.

    You have a few options more than just dropping it into session:

    • Session variable (as mentioned)
    • App cache
    • memcached
    • database
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the new facebook graph API and getting an odd error when I
Using Facebook's PHP SDK, I was able to get Facebook login working pretty quickly
I'm pretty new at this. I was playing with the Facebook Graph API and
I'm trying to familiarize myself with Facebook's new Graph API and so far I
Pretty much all the tutorials I found on authenticating users using Facebook, make use
I am having serious issues trying to use the Javascript API for facebook. I
So I am pretty new to jQuery and Javascript in Gen. I like the
im pretty new to extjs and having trouble with it i am using the
I'm trying to use the Graph API and the PHP SDK for Facebook to
I am pretty much using the samples in the SDK for my app. 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.