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

  • Home
  • SEARCH
  • 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 7674083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:39:37+00:00 2026-05-31T16:39:37+00:00

I am currently using the Facebook Javascript SDK and the Facebook C# SDK (soley

  • 0

I am currently using the Facebook Javascript SDK and the Facebook C# SDK (soley for retrieving user graph objects).

Everything so far is going great except for the following scenario:

  • User logs into Facebook
  • User opens a new browser window and visits my
    site

Using the Javascript SDK, I can use the FB.getLoginStatus method to determine if they are connected or not (which they are in this scenario as I have previously authorized my site/app for the facebook login).

However, I need to be able to detect upon the homepage of my site loading for the first time, ideally server-side, if we are in this ‘connected’ state, and if so, render some different content to screen (logged in vs not logged in).

I can’t currently see a server-side method in the Facebook C# SDK that enables me to do the equivalent of FB.getLoginStatus (clientside).

I should point out that any subsequent changes to the users loginstatus is handled via subscribing to the auth.authResponseChange event and all is working fine there, but its the first time page load when the user first hits the site that’s the problem.

  • 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-31T16:39:38+00:00Added an answer on May 31, 2026 at 4:39 pm

    There isn’t a way to do this on the server with any Facebook SDK. You must detect the user’s status with the Facebook Javascript SDK. The reason for this is because this information is stored in cookies that are either only readable by facebook.com or that are on you domain, but were set by Facebook and should not be parsed by your app.

    You can parse the cookies on your domain if you like, but it isn’t recommended because Facebook considers those cookies to be an internal implementation detail and does not guarantee their contents. They could change at any time and break your app.

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

Sidebar

Related Questions

I am currently using Facebook C# SDK most recent version with Facebook's JavaScript SDK
Currently I'm testing a Facebook tab page. I am using the JavaScript SDK with
I'm currently integrating Facebook with my website using the Javascript SDK. I've got the
What is the best way to count a Facebook user's friends... I'm currently using
Here's how I currently use the Facebook C# SDK, with Facebook Javascript SDK (this
I have some troubles when using javascript code for Facebook invite friends. Details: User
Ok so I'm using Facebook PHP SDK currently I'm rendering the login/logout buttons as
I'm in the process of building a fan gate using facebook's javascript sdk. I'd
Is it possible to query using Facebook Query Language when not currently logged in
I am building an Facebook IFrame App. I am using the below javascript 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.