'yes'; } return true; } // first, check if we alre

!You are connected with your Facebook account." + "Logout" + ""; jQuery'#sfc_comm_send'.html'Share Comment on Facebook'; } // Refresh the DOM FB.XFBML.Host.parseDomTree; } jQuery"#commentform".bind'submit',sfc_handle_submit_share; function sfc_handle_submit_share { if jQuery'#sfc_comm_share:checked'.val == 'on' { sfc_setCookie'sfc_share', 'yes'; } return true; } // first, check if we already have email permission var sfc_comm_email_perm = false; FB.ensureInit function { FB.Facebook.apiClient.users_hasAppPermission'email',functionres,ex{ if res == 0 { // no permission, ask for it on submit jQuery"#commentform".bind'submit',sfc_get_email_perms; } else { // we have permission, no special handler needed sfc_comm_email_perm = true; } }; }; // ask for email permission function sfc_get_email_perms { if sfc_comm_email_perm return true; if fb_connect_user { FB.Facebook.apiClient.users_hasAppPermission'email',functionres,ex{ if res == 0 { FB.Connect.sho ermissionDialog"email", functionperms {
'yes'; } return true; } // first, check if we alre