Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2012
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement