• Resolved Pierre Lebedel

    (@pierre-lebedel)


    Hello,
    I found a small error on the Facebook ID that can cause duplicate a user account.
    At the line 150 and 154 of nextend-facebook-connect.php, you should replace %d by %s, because the integer of Facebook is too big !
    Here the corrected lines 149 to 157

    $ID = $wpdb->get_var($wpdb->prepare('
      SELECT ID FROM ' . $wpdb->prefix . 'social_users WHERE type = "fb" AND identifier = "%s"
    ', $user_profile['id']));
    if (!get_user_by('id', $ID)) {
      $wpdb->query($wpdb->prepare('
        DELETE FROM ' . $wpdb->prefix . 'social_users WHERE ID = "%s"
      ', $ID));
      $ID = null;
    }

    https://www.ads-software.com/plugins/nextend-facebook-connect/

  • The topic ‘Incorrect facebook id saved’ is closed to new replies.