[ad_1] Discuss poker technique and palms Info window.fbAsyncInit = function() { // init the FB JS SDK FB.init({ appId : '485044071584399', // App ID from the app dashboard channelUrl : 'http://www.pokerstrategy.com/facebookChannel/en_US/', // Channel file for x-domain comms status : false, // Check Facebook Login status cookie : true, // allow use of facebook cookies so server can use them too. xfbml : true, // Look for social plugins on the page version : 'v4.0' // new api version to use }); }; // Load the SDK asynchronously (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v4.0"; fjs.parentNode.insertBefore(js, fjs); } (document, 'script', 'facebook-jssdk')); function FacebookLogin() { FB.login(null,{scope: 'email'}); var popupOpened = false; FB.Event.subscribe('auth.authResponseChange', function(response) { if (response.status == 'connected' && !popupOpened) { var cBoxConfig = $.extend( conf.modalLoginPanel, { overlayClose: false, href: 'https://www.facebook.com/v4.0/dialog/oauth?client_id=485044071584399&state=b0919893dc1a7bcff6915f849f5afea8&response_type=code&sdk=php-sdk-5.7.0&redirect_uri=https%3A%2F%2Fwww.pokerstrategy.com%2Fregister%2Ffacebook-return%2F%3Fpopup%3D1&scope=email&signed_request=" + response.authResponse.signedRequest, className : "fb-regbox-popup', title : 'Login at PokerStrategy.com', scrolling : true, iframe: true, height: 542, width: 500 }); $.colorbox(cBoxConfig); popupOpened=true; } }); return false; } [ad_2] Source link