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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:24:00+00:00 2026-06-18T15:24:00+00:00

I have been using old Facebook C# SDK (Version 4.0.1) in a Canvas Application

  • 0

I have been using old Facebook C# SDK (Version 4.0.1) in a Canvas Application (ASP.NET Web Forms) for facebook. The only functionality I use from SDK is to authorize the user and get Facebook User Id. The API is working for the user who installed the canvas app but not for new users.

I have the below code:

Dim lFacebookApp As FacebookApp()
Dim lCanvasAuthorizer As CanvasAuthorizer

Dim lFacebookSettings As New FacebookSettings()
Dim lCanvasSettings As New CanvasSettings()

lFacebookSettings.AppId = "XXXXXXXX"
lFacebookSettings.AppSecret = "XXXXXXXXXX"
lFacebookSettings.CookieSupport = True

lCanvasSettings.CanvasPageUrl = "Canvaspageurl"
lCanvasSettings.CanvasUrl = "canvasUrl"
lCanvasSettings.AuthorizeCancelUrl = New Uri("http://www.facebook.com")

lFacebookApp = New FacebookApp(lFacebookSettings)
lCanvasAuthorizer = New CanvasAuthorizer(FacebookApp, lCanvasSettings)
lCanvasAuthorizer.Perms = "user_about_me, publish_stream"

If (lCanvasAuthorizer.Authorize()) Then
 Dim info = lFacebookApp.Get("me")
 Dim userId = info.id
End If

How this used to work:
When a new user browses to www.apps.facebook.com/<appname>, lCanvasAuthorizer.Authorize() automatically opens a Log in Dialog and then OAuth dialog box.

But, now it is throwing the below error at Dim info = lFacebookApp.Get("me")

(OAuthException) Error validating access token: The session is invalid because the user logged out.

lCanvasAuthorizer.Authorize() supposed to open oAuth dialog for user but it is not. Is the old Facebook C# SDK broken?

  • 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-18T15:24:01+00:00Added an answer on June 18, 2026 at 3:24 pm

    Facebook C# SDK version 4.0.1 is deprecated. Use the latest version.

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

Sidebar

Related Questions

I've been using the old v3.0 C# SDK for some time and Facebook have
I have been using the old version of dom pdf in codeigniter for pdf
I have a FB chat client developed for Android. I've been using facebook android-sdk
I have an existing asp.net web app that uses facebook to authenticate users. I
I am just two days old in using JMeter . I have been asked
I have been using the storyboard to make an application and currently there are
Content people have been using Word and pasting things into the old unicode system.
I understand this is an old technology, but I have been using it forever
I have been using git-svn lately to manage an old svn repository through git.
I maintain an old web app written in C++ & javascript. I have been

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.