$kt->gen_tracking_invite_sent_url(). "';</script>"; } // If your user gets forwarded outside of facebook, // call $facebook->redirect([canvas url]) to forward your // user back. // $facebook->redirect(FB_CANVAS_URL); break; } case 'inr': { error_log($_SERVER['HTTP_REFERER']);//xxx if(!$kt->get_send_msg_from_js()){ $kt->track_invite_received($uid); // If it doesn't get rid of the the forward the kt_* parameters, except // for the kt_ut tag, after install, we'll get another inr message. $no_kt_param_url = $kt->stripped_kt_args($_SERVER['HTTP_REFERER']); $facebook->redirect($no_kt_param_url); }else{ echo "<script>var kt_landing_str='". $kt->gen_tracking_invite_click_url($uid). "';</script>"; } break; } case 'stream': { if(!$kt->get_send_msg_from_js()){ $kt->track_stream_click($uid);