Sha256: 81582d6eef4101d8e7cc0bd558998fafe497b38b838bf29e0424a43a77667f1e
Contents?: true
Size: 847 Bytes
Versions: 9
Compression:
Stored size: 847 Bytes
Contents
<div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({ appId: '151745734845074', status: true, cookie: true, xfbml: true, oauth: true}); function manageStatus(response) { if (response.authResponse) { //The user is logged in alert("YOU'r Inside"); }else{ //The user is either not logged in or hasn't authorized the app alert("You'r session's no longer valid"); } }; // run once with current status and whenever the status changes FB.getLoginStatus(updateButton); FB.Event.subscribe('auth.statusChange', updateButton); }; //Load the FB JS SDK (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>
Version data entries
9 entries across 9 versions & 1 rubygems