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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:36:39+00:00 2026-05-28T13:36:39+00:00

I implemented 6 months ago in our web application site(Asp.Net) a page where you

  • 0

I implemented 6 months ago in our web application site(Asp.Net) a page where you could authenticate Facebook to use your Facebook account to publish a message current fb user logged wall.
Now, it seams that this is not working any longer. I don’t know why. I suspect that Facebook has changed again their api.
I can give you some code I have or please tell me the ultimate solution for what I try to implement.
So:
I have this

then at the bottom:

<!-- inserted for fb temp -->
    <div id="fb-root">
    </div>
    <script type='text/javascript'>
        window.fbAsyncInit = function () {
            FB.init({ appId: '<%= FacebookAppID %>', status: true, cookie: true, xfbml: true });
            /* sample events to respond to*/
            FB.Event.subscribe('auth.login', function (response) { });
            FB.Event.subscribe('auth.logout', function (response) { });
            FB.getLoginStatus(function (response) { });

        };
        (function () {
            //alert(document.location.protocol);
            var e = document.createElement('script'); e.async = true;
            e.src = document.location.protocol +
            '//connect.facebook.net/en_US/all.js';
            document.getElementById('fb-root').appendChild(e);
        } ());

    </script>

I suspect that there is a problem with getting cookie, however.
In FacebookConnect.cs is this function

private string GetFacebookCookieValue(string cookieValue)
        {
            string tmp = "";
            string cookieName = "fbs_" + ConfigurationManager.AppSettings["AppID"];
            tmp += cookieName + "";
            string retString = null;
            HttpCookie c = HttpContext.Current.Request.Cookies[cookieName];

            if (HttpContext.Current.Request.Cookies[cookieName] != null)
            {
                retString = HttpContext.Current.Request.Cookies[cookieName][cookieValue];
                tmp += " [[" + HttpContext.Current.Request.Cookies[cookieName][cookieValue];
            }
            else
            {
                //tmp += c.ToString() + "]] ";
            }

            //throw new Exception(tmp);
            return retString;
        }

when I look for cookies set for my website I don’t find any cookie with name fbs_ , onlt fbsr_

Update:

 public string AccessToken
        {
            get
            {
                //NOTE: oddly enough the accesstoken key in the cookie is actually \"access_token
                string token = GetFacebookCookieValue("\"access_token");
                return token;
            }
        }
  • 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-28T13:36:40+00:00Added an answer on May 28, 2026 at 1:36 pm

    Yes, you should read the fbsr cookie. Also, its value has been changed. The cookie will not contain the access token anymore. Instead you will get a code, with which you will have to submit to a request to Facebook for the access token to this url, replacing with appropriate values:

    https://graph.facebook.com/
      oauth/access_token?client_id={0}&redirect_uri=&client_secret={1}&code={2}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I implemented the exception filter like here: http://www.asp.net/web-api/overview/web-api-routing-and-actions/exception-handling And registered it globally, like microsoft
I implemented some code using backbone.js in Asp.NEt MVC3 and found backbone.js very helpful.
I've started to use XCode several months ago, after using IntelliJ for several years,
I have implemented a couple of months ago the in app auto renewable subscription
I started a GTKMM application about 6 months ago and it's reached the point
Months ago I implemented a component which receives data via UDP-network, deserializes it via
Several months ago I implemented a solution to choose unique values from a range
I've switch from VB.NET to C# several months ago, while there are a lot
I implemented the Facebook registration on my website. Everything works fine except that suddenly
We implemented In-app Billing one year ago with no problems following the sample code

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.