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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:24:53+00:00 2026-06-09T04:24:53+00:00

I’m using version 6.0.10.0 of the Facebook.dll from the SDK. We are beta testing

  • 0

I’m using version 6.0.10.0 of the Facebook.dll from the SDK. We are beta testing our application and one of my users cannot login. The user is on an iMac using Chrome.

I am using the server side flow, not using the Facebook Javascript SDK at all.

Here is a snippet of server side code i’m using to retrieve data from Facebook… (This code came directly from a sample somewhere, so credit is due to that author 🙂 )

var fbClient = new FacebookClient();
        var oauthResult = fbClient.ParseOAuthCallbackUrl(pRequestUri);

        string accessToken = null;
        DateTime expires = DateTime.Now;       

        // Exchange the code for an access token
        dynamic result = fbClient.Get("/oauth/access_token", new
        {
            client_id = ConfigurationManager.AppSettings["FacebookAppId"],
            redirect_uri = pRedirectUri.AbsoluteUri,
            client_secret = ConfigurationManager.AppSettings["FacebookAppSecret"],
            code = oauthResult.Code,
        });
        accessToken = result.access_token;
        expires = DateTime.UtcNow.AddSeconds(Convert.ToDouble(result.expires));

        // Get the user's profile information
        dynamic me = fbClient.Get("/me",
        new
        {
            fields = "first_name,last_name,email,name",
            access_token = accessToken
        });

        // Read the Facebook user values
        string sfacebookId = me.id;
        string firstName = me.first_name;
        string lastName = me.last_name;
        string email = me.email;

Here is the detail of the exception from my logs.

(OAuthException - #100) Code was invalid or expired. 

This may be because the user logged out or may be due to a system error.

source="Facebook" detail="Facebook.FacebookOAuthException: (OAuthException - #100) Code  was invalid or expired. This may be because the user logged out or may be due to a system error.

Stack Trace:

at Facebook.FacebookClient.ProcessResponse(HttpHelper httpHelper, String responseString, Type resultType, Boolean containsEtag, IList`1 batchEtags)

at Facebook.FacebookClient.Api(HttpMethod httpMethod, String path, Object parameters, Type resultType)   

at Facebook.FacebookClient.Get(String path, Object parameters)

The query string returned from Facebook includes the parameter code and it has a value.

It is easy to see from the stack trace that the first .Get() method call in my code ends up calling the .ProcessResponse() method which throws the error.

Unfortunately, everywhere I search talks about what to do with an expired access token.

In my case, I have not even retrieved an access token yet, it is my code that is expired or invalid. How can I request a new code?

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-09T04:24:54+00:00Added an answer on June 9, 2026 at 4:24 am

    I could never get the server side flow working for all my users, so I went ahead and switched to the FB Javascript SDK and it is working for me now.

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

Sidebar

Related Questions

I am reading a book about Javascript and jQuery and using one of the
We're building an app, our first using Rails 3, and we're having to build
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm making a simple page using Google Maps API 3. My first. One marker
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function

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.