: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
var fbap_toggle_element_ids=['xyz_fbap_post_permission','xyz_fbap_include_pages',
'xyz_fbap_include_posts',
'xyz_fbap_peer_verification','xyz_credit_link','xyz_fbap_premium_version_ads','xyz_fbap_include_categories','xyz_fbap_enforce_og_tags','xyz_fbap_clear_fb_cache'];
jQuery.each(fbap_toggle_element_ids, function( index, value ) {
jQuery("#"+value+"_no").click(function(){
XyzFbapToggleRadio(0,value);
if(value=='xyz_fbap_include_posts')
xyz_fbap_show_postCategory(0);
jQuery("#"+value+"_yes").click(function(){
XyzFbapToggleRadio(1,value);
if(value=='xyz_fbap_include_posts')
xyz_fbap_show_postCategory(1);
function fbap_popup_fb_auth(domain_name,xyz_fbap_smapsoln_userid,xyzscripts_user_id,xyzscripts_hash_val,auth_secret_key,request_hash)
if(xyzscripts_user_id==''|| xyzscripts_hash_val==''){
if(jQuery('#system_notice_area').length==0)
jQuery('body').append('<div class="system_notice_area_style0" id="system_notice_area"></div>');
jQuery("#system_notice_area").html(xyz_script_fbap_var.html3);
jQuery("#system_notice_area").append('<span id="system_notice_area_dismiss"> <?php _e('Dismiss','facebook-auto-publish'); ?> </span>');
jQuery("#system_notice_area").show();
jQuery('#system_notice_area_dismiss').click(function() {
jQuery('#system_notice_area').animate({
var smap_solution_url='<?php echo XYZ_SMAP_SOLUTION_AUTH_URL;?>';
childWindow = window.open(smap_solution_url+"authorize/facebook.php?smap_id="+xyz_fbap_smapsoln_userid+"&account_id="+account_id+
"&domain_name="+domain_name+"&xyzscripts_user_id="+xyzscripts_user_id+"&request_hash="+request_hash
+"&smap_licence_key="+fbap_licence_key+"&auth_secret_key="+auth_secret_key+"&free_plugin_source=fbap", "SmapSolutions Authorization", "toolbar=yes,scrollbars=yes,resizable=yes,left=500,width=600,height=600");
function fbap_popup_connect_to_xyzscripts()
var smap_xyzscripts_url='<?php echo "https://smap.xyzscripts.com/index.php?page=index/register";?>';
childWindow = window.open(smap_xyzscripts_url, "Connect to xyzscripts", "toolbar=yes,scrollbars=yes,resizable=yes,left=500,width=600,height=600");
function xyz_fbap_ProcessChildMessage_2(message) {
var messageType = message.slice(0,5);
if(messageType==="error")
message=message.substring(6);
if(jQuery('#system_notice_area').length==0)
jQuery('body').append('<div class="system_notice_area_style0" id="system_notice_area"></div>');
jQuery("#system_notice_area").html(message+' <span id="system_notice_area_dismiss"> <?php _e('Dismiss','facebook-auto-publish'); ?> </span>');
jQuery("#system_notice_area").show();
jQuery('#system_notice_area_dismiss').click(function() {
jQuery('#system_notice_area').animate({
var obj1=jQuery.parseJSON(message);
if(obj1.content && obj1.userid && obj1.xyzscripts_user)
var xyz_userid=obj1.userid;var xyz_user_hash=obj1.content;
var xyz_fbap_xyzscripts_accinfo_nonce= '<?php echo wp_create_nonce('xyz_fbap_xyzscripts_accinfo_nonce');?>';
action: 'xyz_fbap_xyzscripts_accinfo_auto_update',
xyz_user_hash: xyz_user_hash,
_wpnonce: xyz_fbap_xyzscripts_accinfo_nonce
jQuery("#connect_to_xyzscripts").hide();
jQuery("#ajax-save-xyzscript_acc").show();
jQuery.post(ajaxurl, dataString ,function(response) {
alert(xyz_script_fbap_var.alert3);
var base_url = '<?php echo admin_url('admin.php?page=facebook-auto-publish-settings');?>';//msg -
window.location.href = base_url+'&msg=4';
else if(obj1.pages && obj1.smapsoln_userid)
var secretkey=obj1.secretkey;
var xyz_fbap_fb_numericid=obj1.xyz_fb_numericid;
var smapsoln_userid=obj1.smapsoln_userid;
if (obj.hasOwnProperty(key)) {
list=list+"<input type='checkbox' value='"+key+"' checked='checked' disabled>"+val+"<br>";
jQuery("#xyz_fbap_page_names").val(JSON.stringify(obj));
jQuery("#xyz_fbap_selected_pages").html(list);
jQuery("#xyz_fbap_selected_pages_tr").show();
jQuery("#auth_message").hide();
jQuery("#re_auth_message").show();
var xyz_fbap_selected_pages_nonce= '<?php echo wp_create_nonce('xyz_fbap_selected_pages_nonce');?>';
var pages_obj = JSON.stringify(obj);
action: 'xyz_fbap_selected_pages_auto_update',
smap_secretkey: secretkey,
xyz_fb_numericid: xyz_fbap_fb_numericid,
smapsoln_userid:smapsoln_userid,
_wpnonce: xyz_fbap_selected_pages_nonce
jQuery("#re_auth_message").hide();
jQuery("#auth_message").hide();
jQuery("#ajax-save").show();
jQuery.post(ajaxurl, dataString ,function(response) {
alert(xyz_script_fbap_var.alert3);
var base_url = '<?php echo admin_url('admin.php?page=facebook-auto-publish-settings');?>';//msg -
window.location.href = base_url+'&msg=5';
function xyz_fbap_open_tab(evt, xyz_fbap_form_div_id) {
var i, xyz_fbap_tabcontent, xyz_fbap_tablinks;
tabcontent = document.getElementsByClassName("xyz_fbap_tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
tablinks = document.getElementsByClassName("xyz_fbap_tablinks");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
document.getElementById(xyz_fbap_form_div_id).style.display = "block";
evt.currentTarget.className += " active";