[ create a new paste ] login | about

Link: http://codepad.org/Ip66G79A    [ raw code | fork ]

ifaour - Plain Text, pasted on Aug 16:
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="https://www.facebook.com/2008/fbml">
<head></head>
<body>
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({
        appId: 'APP_ID',
        status: true,
        cookie: true,
        xfbml: true,
        oauth  : true
    });

	FB.getLoginStatus(function(response) {
		if (response.authResponse) {
			alert("logged in");
		} else {
			alert("no user session available, someone you dont know");
		}
	});
  };
  (function() {
    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>
</body>
</html>


Create a new paste based on this one


Comments: