Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 2nd, 2012  |  syntax: None  |  size: 0.83 KB  |  hits: 34  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. FB.getLoginStatus(function(response) {
  2.   if (response.status === 'connected') {
  3.   document.write("Looks like you're logged into Facebook and our app :)");
  4.     // the user is logged in and connected to your
  5.     // app, and response.authResponse supplies
  6.     // the user’s ID, a valid access token, a signed
  7.     // request, and the time the access token
  8.     // and signed request each expire
  9.     var uid = response.authResponse.userID;
  10.     var accessToken = response.authResponse.accessToken;
  11.   } else if (response.status === 'not_authorized') {
  12. <div class="overlay"><div class="overlay-content"></div></div>
  13.     // the user is logged in to Facebook,
  14.     //but not connected to the app
  15.   } else {
  16. <div class="overlay"><div class="overlay-content"></div></div>
  17.     // the user isn't even logged in to Facebook.
  18.   }
  19. });
  20. </script>