Viewing 15 replies - 1 through 15 (of 17 total)
  • same problem here. maybe it’s the 3.9.1 WP?

    Same problem here.

    Same problem here. Here’s the email that’s generated:

    New user registration on your site:
    Username: Facebook –

    Same issue here! Anyone figured it out?

    I just installed this plugin and I’m getting the same thing using 3.9.1. All it registers for the username is the prefix.

    Facebook has deprecated the ‘username’ availability in API 2.0 starting May 2014, this is why plugin has stopped working because it can’t register the user in WordPress correctly due to non-availability of username.

    This plugin needs update to correct this issue. username now should be formed using the first + last name and (then possibly digit for next available username)

    Thread Starter jaromano

    (@jaromano)

    thanks for that info @ali Qureshi.

    for the rest you need to modify the plugin file. change the username to name and do some str filtering for special character. it will use the display name of the user as the username.

    Also had this issue… You can modify line 168 of nextend-facebook-connect.php to something like this to fix it:

    $sanitized_user_login = sanitize_user($new_fb_settings['fb_user_prefix'] . preg_replace('/[^A-Za-z0-9\-]/', '', strtolower($user_profile['first_name']) . strtolower($user_profile['last_name'])));

    Also had this issue… You can modify line 168 of nextend-facebook-connect.php to something like this to fix it:

    $sanitized_user_login = sanitize_user($new_fb_settings[‘fb_user_prefix’] . preg_replace(‘/[^A-Za-z0-9\-]/’, ”, strtolower($user_profile[‘first_name’]) . strtolower($user_profile[‘last_name’])));

    This works great however, it leaves no space inbetween the first and last name. Is there a way to put a space, dot or dash?

    That worked great. Thanks for that, I was sweating bullets yesterday night under deadline.

    Also had this issue… You can modify line 168 of nextend-facebook-connect.php to something like this to fix it:

    $sanitized_user_login = sanitize_user($new_fb_settings[‘fb_user_prefix’] . preg_replace(‘/[^A-Za-z0-9\-]/’, ”, strtolower($user_profile[‘first_name’]) . strtolower($user_profile[‘last_name’])));

    This works great however, it leaves no space inbetween the first and last name. Is there a way to put a space, dot or dash?

    never put a dot rather use underscore, it does not work with BP profiles urls with dot.

    for _, use this:
    $sanitized_user_login = sanitize_user($new_fb_settings[‘fb_user_prefix’] . preg_replace(‘/[^A-Za-z0-9\-]/’, ”, strtolower($user_profile[‘first_name’]) . ‘_’.strtolower($user_profile[‘last_name’])));

    Would be preferable if we could somehow save the Facebook user id. To generate articles with author profile pics included, its downright useless to have some auto generated

    [first name][last name][some number]

    In its stead, it would be really great if they could save the USER ID somewhere. Does anyone know if there are plans for this? Or am I truly missing the “easy street” solution for getting a contributor (who registered using Facebook Connect) current profile pic.

    Before I was using AWD Facebook plugin which did this and was able to use something like this for displaying the profile pic. Quite useless in this current NextEnd plug setup.

    <?php $fb_base = 'http:\/\/facebook.com\/';
    		$og_base = 'https:\/\/graph.facebook.com\/';
    		echo '<div class="ctr">';
    		echo '<div class="ilb author_box" style="background:url('. esc_url_raw( $og_base ) . $all_meta_for_user[fb_uid][0] . '/picture?type=large' .'); ">';
    		// echo '<a target="_blank" href="' . esc_url_raw( $fb_base ) . $all_meta_for_user[fb_uid][0] . '">';
    		// echo '<img src="' . esc_url_raw( $og_base ) . $all_meta_for_user[fb_uid][0] . '/picture?type=large" /></a>'; //?type=large
    		echo '</div>';
    		echo '</div>';
    		?>

    never put a dot rather use underscore, it does not work with BP profiles urls with dot.

    for _, use this:
    $sanitized_user_login = sanitize_user($new_fb_settings[‘fb_user_prefix’] . preg_replace(‘/[^A-Za-z0-9\-]/’, ”, strtolower($user_profile[‘first_name’]) . ‘_’.strtolower($user_profile[‘last_name’])));

    I used this and still don’t get an underscore. I can’t guess why.

    The plugin author hasn’t replied on this thread (at least, I can’t see any replies), which was started three months ago, and it’s quite an important issue. Is the plugin still being updated/supported?

    Anyway, many thanks to the people here who have contributed to a partial fix.

    thanks for this quick fix. i just set this up today as part of a theme, and wondered why prepended username was not working as expected.

    The code works great! Thank you for sharing the solution.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Missing Data User ID’ is closed to new replies.