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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:00:16+00:00 2026-05-26T22:00:16+00:00

I am using the following code in my facebook application. The when loading the

  • 0

I am using the following code in my facebook application. The when loading the application in facebook has no problem in chrome/firefox/ie8. When it runs in IE9 it is reporting that OAuthException has been thrown.

public string GetFacebookId() {
            if (!FacebookWebContext.Current.IsAuthorized())
                return string.Empty;

            var client = new FacebookWebClient();

            dynamic me = client.Get("me");
            return me.id;
        }
(OAuthException) An active access token must be used to query 
information about the current user.

any suggestions would be appreciated.

thanks.

EDIT:

window.fbAsyncInit = function () {
        FB.init({
            appId: '@(Facebook.FacebookApplication.Current.AppId)', // App ID
            //channelURL: '//facebook.thefarmdigital.com.au/moccona/premium/FacebookChannel/', // Channel File
            status: true, // check login status
            cookie: true, // enable cookies to allow the server to access the session
            oauth: true, // enable OAuth 2.0
            xfbml: true  // parse XFBML
        });
        FB.Canvas.setAutoGrow();
    };


$(function () {
        $('#custom_login').click(function () {
            FB.getLoginStatus(function (response) {
                if (response.authResponse) {
                    //should never get here as controller will pass to logged in page
                } else {
                    FB.login(function (response) {
                        if (response.authResponse) {
                            window.location = '@(Request.Url.AbsoluteUri.Replace(Request.Url.PathAndQuery, ""))' + $('#custom_login').attr('href');
                        } else {
                            window.location = '@(Request.Url.AbsoluteUri.Replace(Request.Url.PathAndQuery, ""))' + $('#custom_login').attr('dataFail');
                        }
                    }, { scope: 'publish_stream' });
                }
            });
            return false;
        });
    });
  • 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-26T22:00:17+00:00Added an answer on May 26, 2026 at 10:00 pm

    I’m not familiar with FB’s C# SDK, but judging from the code you gave, it does not seem that you are doing any user authentication with FB. It might be that it works in Chrome and Firefox only because you are somehow already logged into your FB app in those browsers.

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

Sidebar

Related Questions

hi I am using following code to pop up Facebook application request dialog in
I am using following code to post image on Facebook wall. it's working fine.
I am creating application in facebook using iframe. In that i want to redirect
I have a facebook application that was using a CFC I had found on
I am using the following code to share information from my application. Intent sendIntent
I'm using the following code to authorize the application and then ask for permission
I have upload the video on facebook using following code Help From : https://github.com/zoul/facebook-ios-sdk/
I am playing around with facebook application, making them in iframe using coldfusion. Following
We are using Iframe Type application in Facebook. Curretnly we are using following Like
I'm using the following code to retrieve a user's friends: $fql_query_url = 'https://graph.facebook.com/fql?q=SELECT+uid,+name,+pic_square+FROM+user+WHERE+uid+IN+(SELECT+uid2+FROM+friend+WHERE+uid1+=+me())+order+by+name&access_token=' .

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.