$v) { $_POST[$k] = stripslashes($v); } unset($_POST['Submit']); $sanitize = array( 'newfb_update_options', 'fb_appid', 'fb_secret', 'fb_redirect', 'fb_redirect_reg', 'fb_load_style' ); foreach ($sanitize AS $k) { $_POST[$k] = sanitize_text_field($_POST[$k]); } $_POST['fb_user_prefix'] = preg_replace("/[^A-Za-z0-9\-_ ]/", '', $_POST['fb_user_prefix']); update_option("nextend_fb_connect", maybe_serialize($_POST)); $newfb_status = 'update_success'; } } } } static function NextendFB_Options_Page() { $domain = get_option('siteurl'); $domain = str_replace(array( 'http://', 'https://' ), array( '', '' ), $domain); $domain = str_replace('www.', '', $domain); $a = explode("/", $domain); $domain = $a[0]; ?>

Nextend Facebook Connect Settings

"; else if ($newfb_status == 'update_failed') $message = __('Error while saving options', 'nextend-facebook-connect') . "
"; else $message = ''; if ($message != "") { ?>

Facebook needs the CURL PHP extension. Contact your server adminsitrator!

Protocol https not supported or disabled in libcurl. Contact your server adminsitrator!

Facebook needs the JSON PHP extension. Contact your server adminsitrator!

  • Create a facebook app!
  • ', 'nextend-facebook-connect'); ?> Don\'t choose from the listed options, but click on advanced setup in the bottom.', 'nextend-facebook-connect'); ?> Choose an app name, and a category, then click on Create App ID.', 'nextend-facebook-connect'); ?> Pass the security check.', 'nextend-facebook-connect'); ?> Go to the Settings of the application.', 'nextend-facebook-connect'); ?> Click on + Add Platform, and choose Website.', 'nextend-facebook-connect'); ?> Give your website\'s address at the Site URL field with: ' . get_option('siteurl') . '', 'nextend-facebook-connect'); ?> Give a Contact Email and click on Save Changes.', 'nextend-facebook-connect'); ?> Go to Status & Review, and change the availability for the general public to YES.', 'nextend-facebook-connect'); ?> Go back to the Settings, and copy the App ID, and APP Secret, which you have to copy and paste below.', 'nextend-facebook-connect'); ?> Save changes!', 'nextend-facebook-connect'); ?>

    /wp-admin/options-general.php?page=nextend-facebook-connect">
    checked > Yes      checked > No
    CONNECT WITH
    '; ?>
    LINK ACCOUNT TO
    '; ?>
    UNLINK ACCOUNT
    '; ?>