
				response.access_token = access_token;
				response.fb_user_id = response.id;
				response.partner_id = $("#partner-id").val();
				response.click_id = $("#click-id").val();
				
				if(actionType == 'signup') {
					$.ajax({
						url: window.location.protocol + "//" + "api.perk.com/api/register",
						type: 'POST',
						crossDomain: true,
						cache: false,
						data: { 
							type: 'facebook',
							device_type: 'web_browser',
							fb_user_id: response.fb_user_id,
							access_token: respons