title: Facebook Connect Server-Side GetLoginStatus using ASP.NET C#
body: <p>I am currently using the Facebook Javascript SDK and the Facebook C# SDK (soley for retrieving user graph objects).</p>
  
  <p>Everything so far is going great except for the following scenario:</p>
  
  <ul>
  <li>User logs into Facebook</li>
  <li>User opens a new browser window and visits my
  site</li>
  </ul>
  
  <p>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).</p>
  
  <p>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).</p>
  
  <p>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).</p>
  
  <p>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.</p>